" .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 " UI/UX set scrolloff=10 set autoindent set relativenumber set showcmd set showmode set ideajoin set startofline " search set hlsearch set incsearch set smartcase let mapleader=" " let g:mapleader=" " " system clipboard set clipboard+=unnamedplus set ideaput "" Plugins " --- Enable IdeaVim plugins https://jb.gg/ideavim-plugins " set sneak set highlightedyank set exchange set commentary set matchit set mini-ai set vim-paragraph-motion set peekaboo set surround " More text objects set argtextobj set functiontextobj set textobj-indent set which-key set notimeout let g:WhichKey_ShowVimActions = "true" let g:WhichKey_SortOrder = "by_key_prefix_first" set NERDTree let g:NERDTreeMapActivateNode = "l" let g:NERDTreeMapPreview = "" let g:NERDTreeMapJumpParent = "h" nmap e :NERDTree " surround Plug "tpope/vim-surround" " Mappings " Choose if vim or ide will handle the mapping " Allows to set text formatting in markdown sethandler n:vim i-v:ide sethandler n:vim i-v:ide sethandler a:ide sethandler n:vim i-v:ide sethandler a:vim i:ide " Don't use Ex mode, use Q for formatting. map Q gq " Prevent movement nmap vmap vmap p "_dP vmap J (MoveStatementDown) vmap K (MoveStatementUp) let g:WhichKeyDesc_Nop = "" "" find let g:WhichKeyDesc_Find = "f Find" nmap fF (SearchEverywhere) let g:WhichKeyDesc_Find_Everywhere = "fF Everywhere" nmap ff (GotoFile) let g:WhichKeyDesc_Find_Files = "ff Files" nmap fr (RecentFiles) let g:WhichKeyDesc_Find_Recents = "fr Recent" nmap fa (GotoAction) nmap fl (GotoSymbol) "" code jump " nmap gd (GotoSuperMethod) " nmap gD (GotoDeclaration) " nmap gy (GotoTypeDeclaration) " nmap gri (GotoImplementation) " nmap grr (FindUsages) " nmap lR (FindUsages) nmap lj (GotoNextError) nmap lk (GotoPreviousError) "" editing let g:WhichKeyDesc_Commentary = "gc Comment" " nmap gco o(CommentByLineComment) " nmap gcO O(CommentByLineComment) nmap lf (ReformatCode) vmap lf (ReformatCode) nmap lr (RenameElement) " Actions nmap ps (QuickList.SSH Actions) "" git operation nmap gt (ActivateCommitToolWindow) " nmap gC (Vcs.ShowTabbedFileHistory) nmap gr (Vcs.RollbackChangedLines) nmap gR (ChangesView.Revert) " nmap gl (Annotate) "" tabs nmap H (PreviousTab) nmap L (NextTab) nmap bc (CloseContent) nmap bC (CloseAllEditors) "" panels nmap h nmap l nmap k nmap j nmap (SplitVertically) nmap ° (SplitHorizontally) "" debug " nmap dc (Debug) " nmap dq (Stop) " nmap db (ToggleLineBreakpoint) " nmap do (StepOver) " nmap di (StepInto) " nmap dO (StepOut) " nmap dE (EvaluateExpression) "" UI map z (ToggleDistractionFreeMode) "" 快速关闭上次搜索结果高亮 nmap :nohlsearch