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 notimeout set clipboard+=unnamed " 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' 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 let g:WhichKeyDesc_GoToFile = "e Toggle Tree" map e (ActivateProjectToolWindow) " Navigation let g:WhichKeyDesc_GoToFile = "ff Go to file" let g:WhichKeyDesc_RecentFiles = " Recent files" let g:WhichKeyDesc_RecentLocations = "fl Recent locations" let g:WhichKeyDesc_NewScratchFile = "fs New scratch file" map ff (GoToFile) 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) " 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) " 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" clet 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 = "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) " 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) " Run map rc (RunClass)