Last active
March 13, 2024 05:37
-
-
Save igaozp/2cc5d56f0c06fb52fc77fe31b74fb4fe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "" Source your .vimrc | |
| "source ~/.vimrc | |
| "" -- Suggested options -- | |
| " 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 | |
| "" -- Map IDE actions to IdeaVim -- https://jb.gg/abva4t | |
| "" Map \r to the Reformat Code action | |
| "map \r <Action>(ReformatCode) | |
| "" Map <leader>d to start debug | |
| "map <leader>d <Action>(Debug) | |
| "" Map \b to toggle the breakpoint on the current line | |
| "map \b <Action>(ToggleLineBreakpoint) | |
| " Find more examples here: https://jb.gg/share-ideavimrc | |
| let mapleader = " " | |
| set clipboard=unnamedplus,unnamed | |
| set hlsearch | |
| set incsearch | |
| set ignorecase | |
| set smartcase | |
| set showmode | |
| set number | |
| set scrolloff=3 | |
| set history=100000 | |
| set multiple-cursors | |
| set commentary | |
| set easymotion | |
| set exchange | |
| set surround | |
| set ideajoin | |
| set clipboard+=ideaput | |
| set ideamarks | |
| "set keep-english-in-normal | |
| "set keep-english-in-normal-and-restore-in-insert | |
| set relativenumber | |
| set highlightedyank | |
| set NERDTree | |
| set showmode | |
| set so=5 | |
| set incsearch | |
| set nu | |
| set idearefactormode=keep | |
| set ideavimsupport | |
| let g:EasyMotion_override_acejump = 0 | |
| let g:argtextobj_pairs="[:],(:),<:>" | |
| map <leader>a :action $SelectAll<CR> | |
| map <leader>x :action $Cut<CR> | |
| map <leader>c :action $Copy<CR> | |
| map <leader>z :action $Undo<CR> | |
| map <leader>v :action $Paste<CR> | |
| nnoremap <esc><esc> :noh<return> | |
| nnoremap gd :action GotoDeclaration | |
| nnoremap ,e :action SearchEverywhere<CR> | |
| nnoremap ,g :action FindInPath<CR> | |
| nnoremap ,s :action FileStructurePopup<CR> | |
| nnoremap gd :action GotoDeclaration<CR> | |
| nnoremap gs :action GotoSuperMethod<CR> | |
| nnoremap gi :action GotoImplementation<CR> | |
| nnoremap gb :action JumpToLastChange<CR> | |
| nnoremap U :action FindUsages<CR> | |
| nnoremap R :action RenameElement<CR> | |
| nnoremap == :action ReformatCode<CR> | |
| vnoremap == :action ReformatCode<CR> | |
| nnoremap [] :action OptimizeImports<CR> | |
| vnoremap [] :action OptimizeImports<CR> | |
| nnoremap cc :action CommentByLineComment<CR> | |
| vnoremap cc :action CommentByLineComment<CR> | |
| nnoremap <C-CR> :action ShowIntentionActions<CR> | |
| nnoremap ,a :action GotoAction<CR> | |
| vnoremap ,a :action GotoAction<CR> | |
| xnoremap p "0p | |
| xnoremap p "_dP | |
| " 搜索文件相关 | |
| nnoremap <leader>zc :action GotoClass<CR> | |
| vnoremap <leader>zc :action GotoClass<CR> | |
| nnoremap <leader>za :action GotoAction<CR> | |
| nnoremap <leader>zh :action RecentChangedFiles<CR> | |
| nnoremap <leader>zf :action GotoFile<CR> | |
| nnoremap <leader>zd :action ActivateDebugToolWindow<CR> | |
| nnoremap <leader>zr :action ActivateRunToolWindow<CR> | |
| nnoremap <leader>zs :action ShelvedChangesToolbar<CR> | |
| nnoremap <leader>zt :action ActivateTODOToolWindow<CR> | |
| nnoremap <leader>zv :action ActivateVersionControlToolWindow<CR> | |
| nnoremap <leader>zb :action ShowBookmarks<CR> | |
| nnoremap <leader>zp :action ActivateProjectToolWindow<CR> | |
| nnoremap <Leader>o :<C-u>action RecentProjectListGroup<CR> | |
| noremap <Space>p :action SelectInProjectView<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment