Last active
May 18, 2024 17:32
-
-
Save Tjlastnumber/11c90364aff97e66576327d3b5a017aa 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
| let mapleader=" " | |
| source ~/.config/neovim/init.lua | |
| set multicursor | |
| set relativenumber | |
| set number | |
| set incsearch | |
| set hlsearch | |
| set autoindent | |
| set showmode | |
| set clipboard+=unnamedplus | |
| """ Plugins -------------------------------- | |
| set ideajoin | |
| set surround | |
| set multiple-cursors | |
| set NERDTree | |
| set commentary | |
| set argtextobj | |
| set easymotion | |
| set textobj-entire | |
| set ReplaceWithRegister | |
| set keep-english-in-normal | |
| set idearefactormode=keep | |
| set ideastatusicon=yellow | |
| let g:argtextobj_pairs="[:],(:),<:>" | |
| " Find more examples here: https://jb.gg/share-ideavimrc | |
| " 使用idea内部功能 | |
| " copy operation | |
| nnoremap <Leader>c :action $Copy<CR> | |
| " visual mode copy | |
| vmap <Leader>c :action $Copy<CR> | |
| " paste operation | |
| nnoremap <Leader>v :action $Paste<CR> | |
| " Select All | |
| nnoremap <Leader>a :action $SelectAll<CR> | |
| " reformat code | |
| nnoremap <Leader>f :action ReformatCode<CR> | |
| vmap <Leader>f :action ReformatCode<CR> | |
| " New File | |
| nnoremap <C-n> :action NewFile<CR> | |
| " 找到usage | |
| nnoremap <Leader>u :action FindUsages<CR> | |
| " 调用idea的replace操作 | |
| nnoremap <Leader>/ :action Replace<CR> | |
| " 定位到引用 | |
| nmap <Leader>g :action GotoImplementation<CR> | |
| " go to class | |
| nnoremap <Leader>gc :action GotoClass<CR> | |
| " go to action | |
| nnoremap <Leader>ga :action GotoAction<CR> | |
| " run | |
| nnoremap <Leader>r :action Run<CR> | |
| " debug | |
| nnoremap <Leader>d :action Debug<CR> | |
| " stop | |
| nnoremap <Leader>s :action Stop<CR> | |
| " resume | |
| nnoremap <Leader>p :action Resume<CR> | |
| " step | |
| nnoremap <Leader>n :action StepOver<CR> | |
| " step into | |
| nnoremap <Leader>. :action StepInto<CR> | |
| " 显示当前文件的文件路径 | |
| nnoremap <Leader>pwd<CR> :action ShowFilePath<CR> | |
| " 隐藏激活窗口 | |
| nnoremap <Leader>h :action HideAllWindows<CR> | |
| " NERDTree | |
| nmap <Leader>e :NERDTree<CR> | |
| " 打断点 | |
| nmap <Leader>bb :action ToggleLineBreakpoint<CR> | |
| " 查看所有断点 | |
| nmap <Leader>vb :action ViewBreakpoints<CR> | |
| " OptimizeImports | |
| nmap <Leader>o :action OptimizeImports<CR> | |
| " build project | |
| nmap <Leader>bp :action CompileDirty<CR> | |
| " reload maven project | |
| nmap <Leader><C-o> :action Maven.ReimportProject<CR> | |
| nmap <S-h> :action PreviousTab<CR> | |
| nmap <S-l> :action NextTab<CR> | |
| nmap <C-Tab> :action Switcher<CR> | |
| nmap <C-g> <action>(SelectInProjectView) | |
| " 折叠选中 | |
| nmap za <action>(ExpandRegionRecursively) | |
| " 增量选中 | |
| noremap <Enter> :action EditorSelectWord<CR> | |
| noremap <Backspace> :action EditorUnSelectWord<CR> | |
| " 多行编辑 | |
| vmap <C-8> <action>(SelectAllOccurrences) | |
| nmap <C-p> <action>(ParameterInfo) | |
| " 注释 | |
| map <C-/> <action>(CommentByLineComment) | |
| map <C-S-/> <action>(CommentByBlockComment) | |
| "" Window navigation | |
| let g:WhichKeyDesc_window_left = '<C-l> Window Left' | |
| nnoremap <C-l> <C-w>l | |
| let g:WhichKeyDesc_window_right = '<C-h> Window Left' | |
| nnoremap <C-h> <C-w>h | |
| let g:WhichKeyDesc_window_down = '<C-j> Window Down' | |
| nnoremap <C-j> <C-w>j | |
| let g:WhichKeyDesc_window_up = '<C-k> Window Up' | |
| nnoremap <C-k> <C-w>k | |
| nnoremap <C-f> :action SearchEverywhere<CR> | |
| imap <C-k> <Up> | |
| imap <C-j> <Down> | |
| imap <C-h> <Left> | |
| imap <C-l> <Right> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment