diff --git a/.ideavimrc b/.ideavimrc index 003f682..ad1852b 100644 --- a/.ideavimrc +++ b/.ideavimrc @@ -9,6 +9,8 @@ set scrolloff=10 set visualbell set ignorecase set smartcase +set incsearch +set hlsearch set notimeout set clipboard+=unnamed @@ -25,14 +27,15 @@ let g:WhichKey_SortOrder = "by_key_prefix_first" " NerdTree Plug 'preservim/nerdtree' +nnoremap :NERDTree let g:NERDTreeWinSize=30 let g:NERDTreeMapPreview=0 let g:NERDTreeMapActivateNode='l' let g:NERDTreeMapJumpParent='h' -let mapleader=' ' +let mapleader=" " " Manage Projects noremap s :action ManageRecentProjects @@ -49,9 +52,9 @@ noremap l noremap k noremap j - -let g:WhichKeyDesc_GoToFile = "e Toggle Tree" -map e (ActivateProjectToolWindow) +" Center Screen with Page up and down +nnoremap zz +nnoremap zz " Navigation let g:WhichKeyDesc_GoToFile = "ff Go to file" @@ -63,36 +66,30 @@ map (RecentFiles) map fl (RecentLocations) map fs (NewScratchFile) -" Center Screen with Page up and down -nnoremap zz -nnoremap zz " Window Management let g:WhichKeyDesc_WindowManagement = "% Window management" let g:WhichKeyDesc_SplitVertically = "% Split vertically" let g:WhichKeyDesc_SplitHorizontally = "\" Split horizontally" let g:WhichKeyDesc_CloseContent = "x Close content" -let g:WhichKeyDesc_MoveEditorToOppositeTabGroup = "wm Move editor to opposite tab group" map % (SplitVertically) map " (SplitHorizontally) -map wm (MoveEditorToOppositeTabGroup) +map x (CloseContent) " Popup Navigation inoremap (PopupMenu-selectNext) inoremap (PopupMenu-selectPrev) -" Buffers -let g:WhichKeyDesc_Buffers = "b Buffer" -let g:WhichKeyDesc_Buffers_Delete = "bd Buffer Delete" -map bd (CloseContent) - " Debug options -let g:WhichKeyDesc_DebugOptions = "dd Debug options" -let g:WhichKeyDesc_ToggleLineBreakpoint = "db Toggle line breakpoint" -map dd (Debug) -map dr (Run) -map ds (Stop) -map db (ToggleLineBreakpoint) +let g:WhichKeyDesc_debug = "d Dubug" +let g:WhichKeyDesc_debug_menu = "dd Dubug menu" +let g:WhichKeyDesc_debug_run = "dr Dubug Run" +let g:WhichKeyDesc_debug_stop = "ds Dubug Stop" +let g:WhichKeyDesc_debug_breakpoint = "db Toggle Line Breakpoint" +map dd (Debug) +map dr (Run) +map ds (Stop) +map db (ToggleLineBreakpoint) " Actions let g:WhichKeyDesc_Actions = "a Actions" @@ -124,7 +121,7 @@ let g:WhichKeyDesc_GotoImplementation = "gi Goto implementation" let g:WhichKeyDesc_ShowUsages = "gu Show usages" let g:WhichKeyDesc_GotoTest = "gt Goto test" let g:WhichKeyDesc_Back = "gb Back" -clet g:WhichKeyDesc_Forward = "gf Forward" +let g:WhichKeyDesc_Forward = "gf Forward" map gd (GoToDeclaration) map gy (GotoTypeDeclaraton) map gi (GotoImplementation) @@ -134,27 +131,15 @@ map gb (Back) map gf (Forward) " Go Tag -let g:WhichKeyDesc_GoTag = "gt Go tag" let g:WhichKeyDesc_GoTag_AddKey = "gt Add Tag" map gt :action IntentionActionAsAction_com.goide.inspections.tag.GoTagAddKeyIntention -" Git -let g:WhichKeyDesc_Git = "G Git" -let g:WhichKeyDesc_GitCompare = "Gc Commit" -let g:WhichKeyDesc_GitDiff = "Gd Diff" -let g:WhichKeyDesc_GitPull = "Gp Pull" -let g:WhichKeyDesc_GitPush = "GP Push" -map Gd (Compare.SameVersion) -map GP (Vcs.Push) -map Gp (Git.Pull) -map Gc (CheckinProject) -map Gb (Git.CreateNewBranch) " Errors -let g:WhichKeyDesc_Errors = "E Errors" -let g:WhichKeyDesc_NextError = "En Next error in solution" -let g:WhichKeyDesc_PrevError = "Ep Previous error in solution" -map En (ReSharperGotoNextErrorInSolution) -map Ep (ReSharperGotoPrevErrorInSolution) +let g:WhichKeyDesc_Errors = "e Errors" +let g:WhichKeyDesc_NextError = "en Next error in solution" +let g:WhichKeyDesc_PrevError = "ep Previous error in solution" +map en (ReSharperGotoNextErrorInSolution) +map ep (ReSharperGotoPrevErrorInSolution) " Menu let g:WhichKeyDesc_Menu = "m Menu" @@ -177,5 +162,49 @@ map ms (ScopeViewPopupMenu) map mt (EditorTabPopupMenu) map mw (ToolWindowsGroup) +" New files +let g:WhichKeyDesc_new_file = "n New Files" +let g:WhichKeyDesc_new_gofile = "ng New Go File" +let g:WhichKeyDesc_new_dir = "nD New Directory" +let g:WhichKeyDesc_new_html = "nh New HTML File" +let g:WhichKeyDesc_new_docker = "nd New Docker File" +let g:WhichKeyDesc_new_powershell = "np New Powershell File" +let g:WhichKeyDesc_new_file = "nf New File" +map ng (Go.NewGoFile) +map nD (NewDir) +map nh (NewHtmlFile) +map nd (NewDockerfile) +map np (NewPowerShellFile) +map nf (NewFile) + +" Git windows +let g:WhichKeyDesc_git = "G Git/Go Operations" +let g:WhichKeyDesc_git_commit = "Gc Open Git commit dialog" +let g:WhichKeyDesc_git_branches = "Gb Open Git branches list" +let g:WhichKeyDesc_git_pull = "Gp Open Git Pull" +map Gc (CheckinProject) +map Gb (Git.Branches) +map Gp (Git.Pull) +map GP (Vcs.Push) + +" Tools +let g:WhichKeyDesc_Tools = "t Tools" +let g:WhichKeyDesc_git_Tools_Copilot = "tc Copilot" +let g:WhichKeyDesc_git_Tools_Debug = "td Debug" +let g:WhichKeyDesc_git_Tools_Terminal = "tt Terminal" +let g:WhichKeyDesc_tools_mergerequest = "tm Merge Request" +let g:WhichKeyDesc_tools_services = "ts Services" +let g:WhichKeyDesc_tools_run = "tr Run" +map tc (copilot.chat.show) +map td (ActivateDebugToolWindow) +map tt (ActivateTerminalToolWindow) +map tm (ActivateMergeRequestsToolWindow) +map tr (ActivateRunToolWindow) +map ts (ActivateServicesToolWindow) + +" Easy visual indentation +vnoremap < >gv + " Run -map rc (RunClass) +map rc (RunClass) \ No newline at end of file