"" Source your .vimrc source $HOME/.dotfiles/config/vim/vimrc " https://github.com/ville6000/dotfiles/blob/main/vimrc " To get a list of Actions run `:actionlist ` let mapleader = "\" set clipboard+=unnamed set cursorline " Highlight current line set nocompatible " disable compatibility mode with vi filetype off " disable filetype detection (but re-enable later, see below) set undolevels=1000 " Number of undo levels set backspace=indent,eol,start " Backspace behaviour " 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 " Don't use Ex mode, use Q for formatting. map Q gq call plug#begin('~/.config/vim/plugged') " Plug 'ayu-theme/ayu-vim' call plug#end() set ideajoin set ideastatusicon=gray set ideamarks set idearefactormode=normal set which-key set mini-ai " which-key settings " https://github.com/TheBlob42/idea-which-key let g:WhichKey_ShowVimActions = "true" let g:WhichKey_DefaultDelay = 600 " make the popup appear much slower let g:WhichKey_PrefixStyle = "bold" " disable the timeout option set notimeout " Map esc to :noh map :noh nmap j :tabnext nmap k :tabprevious nmap l b # :nmap (Back) :nmap (Forward) :map H (MethodUp) :map L (MethodDown) :map o (FileStructurePopup) :map m (ShowIntentionActions) nmap ss (GotoSymbol) " File management and navigation commands nmap fl (RecentLocations) nmap fc (FindInPath) nmap fr (RecentFiles) nmap fu :action FindUsages nmap ff :action GotoFile nmap fi (SelectIn) nmap fp (ReplaceInPath) nmap fo (OpenFile) nmap fs (ManageRecentProjects) nmap fw (CloseActiveTab) nmap sr :action RecentFiles nmap se :action SearchEverywhere nmap st (TextSearchAction) nmap ss (GotoSymbol) nmap sa (GotoAction) " Find text nmap ft :action FindText nmap dx (Debug) nmap dc (ContextDebug) nmap dv (ViewBreakpoints) nmap de (EditBreakpoint) nmap dm (XDebugger.MuteBreakpoints) nmap dt (ToggleLineBreakpoint) nmap dC (RunToCursor) nmap di (StepInto) nmap do (StepOver) nmap dr (Resume) nmap dR (EvaluateExpression) nmap dw (ActivateDebugToolWindow) nmap gd (GotoDeclaration) nmap go (GotoSuperMethod) nmap gD (GotoTypeDeclaration) nmap gi (GotoImplementation) nmap gT (GotoTest) nmap gp :action VcsShowPrevChangeMarker nmap gn :action VcsShowNextChangeMarker " Trigger tests map tt (RiderUnitTestRunContextAction) nmap cc :action CommentByLineComment nmap lf (ReformatCode) nmap li (InspectCode) :map lr (RenameElement) nmap ll (Refactorings.QuickListPopupAction) nmap Gc (Vcs.Show.Local.Changes) nmap Ga (Annotate) :map gh (ShowHoverInfo) nmap vv :vsplit nmap vs :split nmap ww :action HideAllWindows nmap wt :action ActivateTerminalToolWindow nmap wd :action ActivateDatabaseToolWindow " Open project tree window nmap t :action ActivateProjectToolWindow nnoremap cf :action ReformatCode " Bookmarks nmap bm (Bookmarks) nmap bs (ShowBookmarks) nmap bt (ActivateBookmarksToolWindow) nmap bb (ToggleBookmark) nmap be (EditBookmark) nmap bp (GotoPreviousBookmark) nmap bn (GotoNextBookmark) nnoremap ge :action GotoNextError nnoremap gE :action GotoPreviousError " Turn off Copilot nmap cp :action Copilot.Toggle " Navigate back nmap " mark as a global mark/ nnoremap ma mA nnoremap mb mB nnoremap mc mC nnoremap md mD nnoremap me mE nnoremap mf mG nnoremap mh mH nnoremap mi mI nnoremap mj mJ nnoremap mk mK nnoremap ml mL nnoremap mm mM nnoremap mn mN nnoremap mo mO nnoremap mp mP nnoremap mq mQ nnoremap mr mR nnoremap ms mS nnoremap mt mT nnoremap mu mU nnoremap mv mV nnoremap mw mW nnoremap mx mX nnoremap my mY nnoremap mz mZ " go to global marks nnoremap 'a `A nnoremap 'b `B nnoremap 'c `C nnoremap 'd `D nnoremap 'e `E nnoremap 'f `G nnoremap 'h `H nnoremap 'i `I nnoremap 'j `J nnoremap 'k `K nnoremap 'l `L nnoremap 'm `M nnoremap 'n `N nnoremap 'o `O nnoremap 'p `P nnoremap 'q `Q nnoremap 'r `R nnoremap 's `S nnoremap 't `T nnoremap 'u `U nnoremap 'v `V nnoremap 'w `W nnoremap 'x `X nnoremap 'y `Y nnoremap 'z `Z " Harpoon nmap :action SetHarpoon1 nmap :action SetHarpoon2 nmap :action SetHarpoon3 nmap :action SetHarpoon4 nmap :action SetHarpoon5 nmap :action SetHarpoon6 nmap :action GotoHarpoon1 nmap :action GotoHarpoon2 nmap :action GotoHarpoon3 nmap :action GotoHarpoon4 nmap :action GotoHarpoon5 nmap :action GotoHarpoon6 nmap :action ShowHarpoon nmap :action AddToHarpoon " --- syntax enable filetype plugin indent on set termguicolors if has('gui_running') set macligatures set guifont=JetBrainsMono:h14 endif " vim: set filetype=vim :