From 8ebe5536afd7302c6514c65906256251793f9bec Mon Sep 17 00:00:00 2001 From: Lorenz Hohermuth Date: Fri, 14 Feb 2025 14:50:41 +0100 Subject: [PATCH] Ideavimrc --- .ideavimrc | 122 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 .ideavimrc diff --git a/.ideavimrc b/.ideavimrc new file mode 100644 index 0000000..ab28536 --- /dev/null +++ b/.ideavimrc @@ -0,0 +1,122 @@ +" .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 \ No newline at end of file