" You can find a list of commands here: https://jb.gg/h38q75 " Find more examples here: https://jb.gg/share-ideavimrc " Examples to map IDE actions to IdeaVim -- https://jb.gg/abva4t " Enable IdeaVim plugins https://jb.gg/ideavim-plugins " Source .vimrc "source ~/.vimrc """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Searches set hlsearch " highlight search occurrences set ignorecase " ignore case in search patterns set smartcase " no ignore case when pattern is uppercase set incsearch " show search results while typing set wrapscan " searches wrap around the end of the file " common settings set gdefault " substitute all occurrences in line set history=10000 " command line history set scrolloff=5 sidescrolloff=10 " Keep some line before and after the cursor visible set clipboard^=unnamed,unnamedplus,ideaput " Copy to and from system clipboard """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" "keymaps let mapleader = " " " Don't use Ex mode, use Q for formatting map Q gq " Map d to start debug "map d (Debug) " Map \b to toggle breakpoint "map \b (ToggleLineBreakpoint) " Center the cursor when doing 1/2 page down and page up nnoremap zz nnoremap zz " clear search highlighting nnoremap / :nohls " code navigations nmap e :action GotoFile nmap a :action FindInPath nmap gr :action ShowUsages nmap gi :action GotoImplementation nmap gs :action GotoSuperMethod nmap tn :action NextTab nmap tp :action PreviousTab nmap :action ParameterInfo imap :action ParameterInfo nmap n :action GotoNextError map gh (ShowErrorDescription) " code refactoring nmap ri :action Inline nmap rr :action RenameElement nmap rev :action IntroduceVariable vmap rev :action IntroduceVariable nmap rem :action ExtractMethod vmap rem :action ExtractMethod nmap rm :action Move nmap ro :action OptimizeImports nmap rG :action Generate nmap rf :action ReformatCode " Easy motion map J (easymotion-s) map j (easymotion-f) nmap gr :action Vcs.RollbackChangedLines """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Enabled plugins set ideajoin Plug 'easymotion/vim-easymotion' Plug 'preservim/NERDTree' Plug 'tpope/surround' Plug 'tpope/commentary' Plug 'machakann/highlightedyank' Plug 'dbakker/vim-paragraph-motion' Plug 'chrisbra/matchit' Plug 'tpope/vim-repeat' " Repeat for Surround Plug 'airblade/vim-gitgutter' " Git gutter icons Plug 'mg979/vim-visual-multi' " Multi Line Editing