" .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 let mapleader = " " "" -- 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 " Do incremental searching. set incsearch set ic " 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) "Switching tabs" map (NextTab) map (PreviousTab) "go to Implementation" map gi (GotoImplementation) "go to overwrite" map go (GotoSuperMethod) "toggle description" map td (ToggleRenderedDocPresentation) "Highlight in tree" map h (SelectInProjectView) "Set BreakPoint" map sb (ToggleLineBreakpoint) "Mute BreakPoint" map mb (XDebugger.MuteBreakpoints) "Resume" map dr (Resume) "Step Over (debugger next)" map n (StepOver) "Optimize Imports" map oi (OptimizeImports) "Set Marker" map sm (ToggleBookmark) map sM (ToggleBookmarkWithMnemonic) "Display Markers" map mm (ShowBookmarks) "Reformat" map f (ReformatCode) "commands" map (Run) map (Debug) "errors" map (GotoNextError) "Tree Up" map (Tree-selectNext) "Tree Up" map (Tree-selectPrevious) "copy to pc directory" map y "\"+y" xnoremap y "\"+y" map w (HideAllWindows) map x "\"_x" xnoremap x "\"_x" xnoremap J ":m '>+1gv=gv" xnoremap K ":m '<-2gv=gv" map d (ActivateDebugToolWindow) map pr (CompileProject) map pm (Maven.Reimport) map cl (CommentByLineComment) map cb (CommentByBlockComment) map fc (FileStructurePopup) map ea (EvaluateExpression) map s (Switcher) set nu set relativenumber set scrolloff = 8 "which-key plugin" set which-key set timeoutlen=5000 "Reload Configs" command! Reload action IdeaVim.ReloadVimRc.reload command! Check action InspectCode