set relativenumber set number set clipboard=unnamedplus vnoremap p "_dp vnoremap P "_dP set ignorecase set smartcase set incsearch set scrolloff=8 let mapleader=" " "plugins set quickscope set which-key set notimeout set easymotion " install easymotion and acejump plugin set surround set multiple-cursors " https://github.com/JetBrains/ideavim/wiki/IdeaVim%20Plugins#multiple-cursors-extends-multicursor-support nnoremap , :action IdeaVim.ReloadVimRc.reload nnoremap nnoremap t :action Terminal.OpenInTerminal nnoremap q :action QuickJavaDoc nnoremap f :action Find nnoremap r :action Replace map f (easymotion-bd-f) map f (easymotion-bd-w) nnoremap J mzJ`z nnoremap S ht lrk$ vnoremap J :m '>+1gv=gv vnoremap K :m '<-2gv=gv " --------------- multiple cursors --------------- "map l V(ReformatCode)" Remap multiple-cursors shortcuts to match terryma/vim-multiple-cursors nmap NextWholeOccurrence xmap NextWholeOccurrence nmap g NextOccurrence xmap g NextOccurrence xmap SkipOccurrence xmap RemoveOccurrence " Note that the default and g shortcuts don't work on Mac due to dead keys. " is used to enter accented text e.g. ñ " Feel free to pick your own mappings that are not affected. I like to use nmap AllWholeOccurrences xmap AllWholeOccurrences nmap g AllOccurrences xmap g AllOccurrences " --------------- end multiple cursors ---------------