Skip to content

Instantly share code, notes, and snippets.

@enamoria
Created December 18, 2018 04:38
Show Gist options
  • Save enamoria/70496974e0b0123925a0073099221c7c to your computer and use it in GitHub Desktop.
Save enamoria/70496974e0b0123925a0073099221c7c to your computer and use it in GitHub Desktop.
IdeaVim configuration: .ideavimrc
nnoremap <S-Left> :action EditorLeftWithSelection<CR>
nnoremap <S-Right> :action EditorRightWithSelection<CR>
nnoremap <S-Up> :action EditorUpWithSelection<CR>
nnoremap <S-Down> :action EditorDownWithSelection<CR>
inoremap <S-Left> <C-O>:action EditorLeftWithSelection<CR>
inoremap <S-Right> <C-O>:action EditorRightWithSelection<CR>
inoremap <S-Up> <C-O>:action EditorUpWithSelection<CR>
inoremap <S-Down> <C-O>:action EditorDownWithSelection<CR>
nmap <Home> ^
imap <Home> ^
inoremap jk <Esc>
inoremap kj <Esc>
inoremap kk <Esc>
" Reference: https://github.com/melihovv/cfgs/blob/master/roles/vim/files/.ideavimrc
" Previous method.
nnoremap [m :action MethodUp<cr>
" Next method.
nnoremap ]m :action MethodDown<cr>
let mapleader = " "
map <leader>a :action $SelectAll<CR>
map <leader>b :action GotoDeclaration<CR>
map <leader>c :action $Copy<CR>
map <leader>d :action EditorDuplicate<CR>
map <leader>e :action RecentFiles<CR>
map <leader>f :action Find<CR>
map <leader>g :action GotoLine<CR>
map <leader>h :action TypeHierarchy<CR>
map <leader>i :action ImplementMethods<CR>
map <leader>m :action EditorScrollToCenter<CR>
map <leader>n :action FileChooser.NewFolder<CR>
map <leader>o :action OverrideMethods<CR>
map <leader>p :action ParameterInfo<CR>
map <leader>q :action GuiDesigner.QuickJavadoc<CR>
map <leader>r :action Replace<CR>
map <leader>s :action SaveAll<CR>
map <leader>t :action Vcs.UpdateProject<CR>
map <leader>k :action Vcs.QuickListPopupAction<CR>
map <leader>u :action GotoSuperMethod<CR>
map <leader>v :action VimVisualToggleBlockMode<CR>
map <leader>w :action EditorSelectWord<CR>
map <leader>x :action $Cut<CR>
map <leader>y :action EditorDeleteLine<CR>
map <leader>[ :action EditorCodeBlockStart<CR>
map <leader>] :action EditorCodeBlockEnd<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment