" .ideavimrc is a configuration file for IdeaVim plugin. It uses " the same commands as the original .vimrc configuration. " You can find a list of commands here: https://jb.gg/h38q75 " Find more examples here: https://jb.gg/share-ideavimrc set clipboard+=unnamed set clipboard+=ideaput let mapleader=" " nnoremap e :e ~/.ideavimrc nnoremap :action IdeaVim.ReloadVimRc.reload nnoremap :action ToggleDistractionFreeMode nnoremap :action ActivateTerminalToolWindow nnoremap ü :action HideActiveWindow nnoremap t :action Terminal.OpenInTerminal nnoremap :action SplitVertically nnoremap :action Unsplit sethandler a:vim sethandler a:vim nnoremap h nnoremap l nnoremap j nnoremap k nnoremap :action PreviousTab nnoremap :action NextTab nnoremap en :action EditSourceInNewWindow nnoremap n :action NextWindow nnoremap q :action CloseContent nnoremap qa :action CloseAllEditors set ideajoin set idearefactormode=keep vnoremap < >gv nnoremap [[ :action MethodUp nnoremap ]] :action MethodDown nnoremap zc :action CollapseRegion nnoremap zo :action ExpandRegion nnoremap zc :action CollapseAllRegions nnoremap zo :action ExpandAllRegions nnoremap c :action CommentByLineComment nnoremap r :action Refactorings.QuickListPopupAction nnoremap ä :action ReformatCode nnoremap i :action OptimizeImports nnoremap l :action RecentLocations nnoremap h :action LocalHistory.ShowHistory nnoremap ge :action GotoNextError nnoremap gE :action GotoPreviousError set incsearch nnoremap :action FindInPath nnoremap :action GotoAction nnoremap :action GotoFile nnoremap u :action FindUsages nnoremap s :action GotoRelated nnoremap b :action ShowNavBar nnoremap :action FileStructurePopup nnoremap :action GotoSymbol nnoremap gC :action GotoClass nnoremap gi :action GotoImplementation nnoremap gd :action GotoDeclaration nnoremap gp :action GotoSuperMethod nnoremap gt :action GotoTest nnoremap gb :action Back nnoremap gf :action Forward nnoremap :action JumpToLastWindow nnoremap :action HideAllWindows nnoremap ,r :action ContextRun nnoremap ,c :action RunClass nnoremap ,f :action ChooseRunConfiguration nnoremap ,t :action ActivateRunToolWindow nnoremap ,u :action Rerun nnoremap ,b :action ToggleLineBreakpoint nnoremap ,d :action ContextDebug nnoremap ,n :action ActivateDebugToolWindow nnoremap d "_d nnoremap dd "_dd vnoremap d "_d nnoremap k :action QuickJavaDoc nnoremap g :action QuickImplementations nnoremap p :action ExpressionTypeInfo nnoremap a :action ShowIntentionActions nnoremap o o nnoremap O O "" -- Suggested options -- " Show a few lines of context around the cursor. Note that this makes the " text scroll if you mouse-click near the start or end of the window. set scrolloff=5 " Don't use Ex mode, use Q for formatting. map Q gq " --- Enable IdeaVim plugins https://jb.gg/ideavim-plugins " Highlight copied text Plug 'machakann/vim-highlightedyank' " Commentary plugin Plug 'tpope/vim-commentary' "" -- 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)