From 8f43c3a78d47430d3deec63b81a4652e2ecd6ec3 Mon Sep 17 00:00:00 2001 From: DefectingCat Date: Wed, 7 Feb 2024 08:36:09 +0800 Subject: [PATCH] update ideavimrc --- deprecated/ideavim/.ideavimrc | 31 ++++++++----------------------- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/deprecated/ideavim/.ideavimrc b/deprecated/ideavim/.ideavimrc index 3ff78e8..94cb2e6 100644 --- a/deprecated/ideavim/.ideavimrc +++ b/deprecated/ideavim/.ideavimrc @@ -3,7 +3,7 @@ let mapleader=" " """ Plugins -------------------------------- Plug 'easymotion/vim-easymotion' Plug 'preservim/nerdtree' -set NERDTree +"set NERDTree set surround set multiple-cursors set commentary @@ -34,6 +34,7 @@ set idearefactormode=keep map Q gq let g:EasyMotion_smartcase = 1 +let g:EasyMotion_startofline = 0 " keep cursor column when JK motion """ Mappings -------------------------------- """ map (easymotion-s) map w (easymotion-w) @@ -42,10 +43,7 @@ map j (easymotion-j) map k (easymotion-k) nnoremap ff :action GotoFile nnoremap fw :action FindInPath - -let g:EasyMotion_startofline = 0 " keep cursor column when JK motion - -"" nnoremap nh :nohl +nnoremap fa :action SearchEverywhere nnoremap :nohl xnoremap p "_dP "" Code @@ -55,11 +53,14 @@ nmap NextWholeOccurrence xmap NextWholeOccurrence nmap ]d :action GotoNextError nmap [d :action GotoPreviousError -nmap gr :action FindUsages +nmap gr :action FindUsages nmap ca :action ShowIntentionActions xmap gb :action CommentByBlockComment nmap co :action OptimizeImports - +"" Debug and run +nnoremap db :action ToggleLineBreakpoint +nnoremap dr :action Debug +nmap rr :action Run """ Switch windows nnoremap h @@ -70,31 +71,15 @@ nmap :action NextTab nmap :action PreviousTab nmap x :q nmap gg :action ActivateCommitToolWindow -""" nmap gh :action ShowErrorDescription "" Workspace nnoremap | :vs nnoremap _ :sp -"" -- Map IDE actions to IdeaVim -- https://jb.gg/abva4t -"" Map \r to the Reformat Code action -"map \r (ReformatCode) - -"" Map d to start debug -"map d (Debug) - -"" Map \b to toggle the breakpoint on the current line -"map \b (ToggleLineBreakpoint) - -"" Debug -nnoremap db :action ToggleLineBreakpoint -nnoremap dr :action Run - "" Extension set keep-english-in-normal " Find more examples here: https://jb.gg/share-ideavimrc - sethandler a:vim sethandler a:vim sethandler a:vim