update ideavimrc

This commit is contained in:
Alexander Navarro 2025-05-05 12:02:40 -04:00
parent bb989f6fc6
commit 7bfaaf730a

View file

@ -71,6 +71,8 @@ map Q gq
nmap <Space> <nop>
vmap <Space> <nop>
vmap p "_dP
vmap J <Action>(MoveStatementDown)
vmap K <Action>(MoveStatementUp)
let g:WhichKeyDesc_Nop = "<Space>"
"" find
@ -92,6 +94,9 @@ let g:WhichKeyDesc_Find_Recents = "<leader>fr Recent"
" nmap grr <Action>(FindUsages)
" nmap <leader>lR <Action>(FindUsages)
nmap <leader>lj <Action>(GotoNextError)
nmap <leader>lk <Action>(GotoPreviousError)
"" editing
let g:WhichKeyDesc_Commentary = "<leader>gc Comment"
" nmap gco o<Action>(CommentByLineComment)<ESC>
@ -99,7 +104,7 @@ let g:WhichKeyDesc_Commentary = "<leader>gc Comment"
" nmap <leader>lf <Action>(ReformatCode)
" vmap <leader>lf <Action>(ReformatCode)<ESC>
" nmap <leader>lr <Action>(RenameElement)
nmap <leader>lr <Action>(RenameElement)
"" git operation
nmap <leader>gt <Action>(ActivateCommitToolWindow)
@ -133,5 +138,8 @@ nmap ° <Action>(SplitHorizontally)
" nmap <leader>dO <Action>(StepOut)
" nmap <leader>dE <Action>(EvaluateExpression)
"" UI
map <leader>z <Action>(ToggleDistractionFreeMode)
"" 快速关闭上次搜索结果高亮
nmap <ESC> :nohlsearch<CR>