Last active
February 11, 2025 17:20
-
-
Save d-e-v-esh/b1ab98df6fc6c4ec5fd23d720df04325 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" The Escape button | |
imap jk <Esc> | |
map <C-c> <Esc> | |
set timeoutlen = 500 | |
set showmode | |
set easymotion | |
set incsearch | |
set NERDTree | |
set number | |
set idearefactormode=keep | |
set ideajoin | |
set surround | |
set showcmd | |
set ideastatusicon | |
set commentary | |
set multiple-cursors | |
""" Sourcing Config | |
nnoremap \s :source ~/.ideavimrc<CR> | |
""" The Leader Key | |
let mapleader=" " | |
" Easy Motion Config | |
map <leader>. <Plug>(easymotion-repeat) | |
map <leader>w <Plug>(easymotion-bd-w) | |
map <leader>e <Plug>(easymotion-bd-e) | |
nmap s <Plug>(easymotion-s2) | |
xmap s <Plug>(easymotion-s2) | |
nmap <leader>s <Plug>(easymotion-sn) | |
xmap <leader>s <Plug>(easymotion-sn) | |
""" Distraction Free Mode | |
nnoremap <c-m> :action ToggleDistractionFreeMode<CR> | |
""" Terminal | |
nmap <leader>t :action ActivateTerminalToolWindow<CR> | |
""" Copy/Paste | |
vmap <Leader>y "+y | |
vmap <Leader>d "+d | |
nmap <Leader>p "+p | |
""" Undo | |
nmap <c-z> :action $Undo<CR> | |
xmap <c-z> :action $Undo<CR> | |
map <c-z> :action $Undo<CR> | |
""" Searching and Navigation | |
nmap <Leader>ff :action GotoFile<CR> | |
nmap <Leader>fr :action RecentFiles<CR> | |
nmap <Leader>fg :action SearchEverywhere<CR> | |
nnoremap <leader>fi :action FindInPath<CR> | |
nnoremap gb :action Back<CR> | |
nnoremap gf :action Forward<CR> | |
nnoremap / :action Find<CR> | |
nnoremap <c-f> :action Find<CR> | |
""" Navigation | |
nnoremap <c-\> :action SplitVertically<CR> | |
nnoremap <c--> :action SplitHorizontally<CR> | |
nnoremap <c-=> :action Unsplit<CR> | |
sethandler <c-j> a:vim | |
sethandler <c-k> a:vim | |
nnoremap <c-h> <c-w>h | |
nnoremap <c-l> <c-w>l | |
nnoremap <c-j> <c-w>j | |
nnoremap <c-k> <c-w>k | |
nnoremap <TAB> :action NextTab<CR> | |
nnoremap <s-TAB> :action PreviousTab<CR> | |
" Commenting | |
nmap <Leader>cc :action CommentByLineComment<CR> | |
nmap <Leader>cb :action CommentByBlockComment<CR> | |
nmap <Leader>c<Space> :action CommentByLineComment<CR> | |
nmap <Leader>cb<Space> :action CommentByBlockComment<CR> | |
""" Editing source code | |
vnoremap < <gv | |
vnoremap > >gv | |
nnoremap [[ :action MethodUp<CR> | |
nnoremap ]] :action MethodDown<CR> | |
nnoremap zc :action CollapseRegion<CR> | |
nnoremap zo :action ExpandRegion<CR> | |
nnoremap <leader>zc :action CollapseAllRegions<CR> | |
nnoremap <leader>zo :action ExpandAllRegions<CR> | |
nnoremap <leader>r :action Refactorings.QuickListPopupAction<CR> | |
nnoremap <Leader>= :action ReformatCode<CR> | |
nnoremap <leader>o :action OptimizeImports<CR> | |
nnoremap ge :action GotoNextError<CR> | |
nnoremap gE :action GotoPreviousError<CR> | |
""" Tool windows | |
nnoremap <c-d> :action HideAllWindows<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment