update ideavim

add more shortcuts
This commit is contained in:
DefectingCat
2023-10-27 14:04:23 +08:00
parent a5885295f0
commit a309ce30e7

View File

@ -47,6 +47,7 @@ let g:EasyMotion_startofline = 0 " keep cursor column when JK motion
nnoremap <leader>nh :nohl<CR>
xnoremap p "_dP
"" Code
noremap gb viw
nnoremap gh :action QuickJavaDoc<cr>
nnoremap <leader>r :action RenameElement<CR>
@ -54,6 +55,8 @@ nmap <C-n> <Plug>NextWholeOccurrence
xmap <C-n> <Plug>NextWholeOccurrence
nnoremap <C-j> :action GotoNextError<CR>
nnoremap <C-k> :action GotoPreviousError<CR>
nmap gj :action FindUsages<CR>
""" Switch windows
nnoremap <C-h> <c-w>h
nnoremap <C-l> <c-w>l
@ -68,6 +71,10 @@ nmap <S-l> :action NextTab<CR>
nmap <s-h> :action PreviousTab<CR>
""" nmap gh :action ShowErrorDescription<CR>
"" Workspace
nnoremap <leader>| :vs<CR>
nnoremap <leader>_ :sp<CR>
"" -- Map IDE actions to IdeaVim -- https://jb.gg/abva4t
"" Map \r to the Reformat Code action
"map \r <Action>(ReformatCode)
@ -82,6 +89,9 @@ nmap <s-h> :action PreviousTab<CR>
nnoremap <leader>d :action ToggleLineBreakpoint<CR>
nnoremap <leader><leader>r :action Run<CR>
"" Extension
set keep-english-in-normal
" Find more examples here: https://jb.gg/share-ideavimrc
sethandler <C-2> a:vim