set number relativenumber set ideajoin set linenumber set showmode set showcmd set incsearch set hlsearch set scrolloff=10 set visualbell set ignorecase set smartcase set incsearch set hlsearch set notimeout set clipboard+=unnamedplus " set clipboard^=ideaput " 3rd party set which-key set surround set highlightedyank " Which Key let g:WhichKey_FontSize = 16 let g:WhichKey_CommandColor = "#41ead4" let g:WhichKey_PrefixColor = "#f335b2" 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=" " " Manage Projects noremap s :action ManageRecentProjects " Tab Navigation noremap :action NextTab noremap :action PreviousTab " Pane Navigation sethandler a:vim sethandler a:vim noremap h noremap l noremap k noremap j " Center Screen with Page up and down nnoremap zz nnoremap zz " Navigation let g:WhichKeyDesc_Files = "f Files" let g:WhichKeyDesc_GoToFile = "ff Go to file" let g:WhichKeyDesc_RecentFiles = "fr Recent files" let g:WhichKeyDesc_RecentLocations = "fl Recent locations" map ff (GotoFile) map (GotoFile) map fr (RecentFiles) map fl (RecentLocations) let g:WhichKeyDesc_UIManagement = "u UI Management" let g:WhichKeyDesc_ToggleZenMode = "uz Toggle Zen Mode" let g:WhichKeyDesc_ToggleDistractionFreeMode = "ud Toggle Distraction Free Mode" map uz (ToggleZenMode) map ud (ToggleDistractionFreeMode) " Window Management let g:WhichKeyDesc_WindowManagement = "w Window management" let g:WhichKeyDesc_SplitVertically = "wv Split vertically" let g:WhichKeyDesc_SplitHorizontally = "wh Split horizontally" map wv (SplitVertically) map wh (SplitHorizontally) " Buffers let g:WhichKeyDesc_Buffer = "b Buffers" let g:WhichKeyDesc_BufferDelete = "bd Delete Buffer" let g:WhichKeyDesc_BufferOtherDelete = "bo Delete Other Buffers" let g:WhichKeyDesc_BufferPin = "bp Toggle Pin" let g:WhichKeyDesc_BufferDeleteNonPin = "bP Delete Non Pinned Buffers" map bd (CloseContent) map bo (CloseAllEditorsButActive) map bp (PinActiveEditorTab) map bP (CloseAllUnpinnedEditors) " Popup Navigation inoremap (PopupMenu-selectNext) inoremap (PopupMenu-selectPrev) " Debug options 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" let g:WhichKeyDesc_ShowIntentionActions = "am Show intention actions" let g:WhichKeyDesc_SearchEverywhere = "as Search everywhere" map am (ShowIntentionActions) map as (SearchEverywhere) " Refactoring let g:WhichKeyDesc_Refactoring = "r Refactoring" let g:WhichKeyDesc_RenameElement = "rn Rename element" let g:WhichKeyDesc_ExtractMethod = "re Extract method" let g:WhichKeyDesc_IntroduceVariable = "rv Introduce variable" let g:WhichKeyDesc_IntroduceField = "rf Introduce field" let g:WhichKeyDesc_ChangeSignature = "rs Change signature" let g:WhichKeyDesc_QuickListPopupAction = "rr Quick list popup action" map rn (RenameElement) map re (ExtractMethod) map rv (IntroduceVariable) map rf (IntroduceField) map rs (ChangeSignature) map rr (Refactorings.QuickListPopupAction) " Go To Code let g:WhichKeyDesc_GoToCode = "g Go to code" let g:WhichKeyDesc_GoToDeclaration = "gd Go to declaration" let g:WhichKeyDesc_GotoTypeDeclaration = "gy Goto type declaration" 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" let g:WhichKeyDesc_Forward = "gf Forward" map gd (GoToDeclaration) map gy (GotoTypeDeclaraton) map gi (GotoImplementation) map gu (ShowUsages) map gt (GotoTest) map gb (Back) map gf (Forward) " Go Tag let g:WhichKeyDesc_GoTag_AddKey = "gt Add Tag" map gt :action IntentionActionAsAction_com.goide.inspections.tag.GoTagAddKeyIntention " 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) " Menu let g:WhichKeyDesc_Menu = "m Menu" let g:WhichKeyDesc_Menu_Main = "mm Main menu" let g:WhichKeyDesc_AnalyzeMenu = "ma Analyze Menu" let g:WhichKeyDesc_BuildMenu = "mb Build Menu" let g:WhichKeyDesc_CodeMenu = "mc Code menu" let g:WhichKeyDesc_FindMenuGroup = "mf Find menu group" let g:WhichKeyDesc_GoToMenu = "mg Go to menu" let g:WhichKeyDesc_ScopeViewPopupMenu = "ms Scope view popup menu" let g:WhichKeyDesc_EditorTabPopupMenu = "mt Editor tab popup menu" let g:WhichKeyDesc_ToolWindowsGroup = "mw Tool windows group" map mm (MainMenu) map ma (AnalyzeMenu) map mb (BuildMenu) map mc (CodeMenu) map mf (FindMenuGroup) map mg (GoToMenu) 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" let g:WhichKeyDesc_new_scratch = "nf Scratch File" map ng (Go.NewGoFile) map nD (NewDir) map nh (NewHtmlFile) map nd (NewDockerfile) map np (NewPowerShellFile) map nf (NewFile) map ns (NewScratchFile) " 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 Continue" 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 (continue.focusContinueInputWithoutClear) map td (ActivateDebugToolWindow) map tt (ActivateTerminalToolWindow) map tm (ActivateMergeRequestsToolWindow) map tr (ActivateRunToolWindow) map ts (ActivateServicesToolWindow) " Easy visual indentation vnoremap < >gv " Run map rc (RunClass)