Last active
April 14, 2022 23:50
-
-
Save masanobuimai/7127a1770d554fb90abe to your computer and use it in GitHub Desktop.
This file contains 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="," | |
set surround | |
set easymotion | |
set multiple-cursors | |
set ignorecase | |
set smartcase | |
"set selection=exclusive | |
" https://youtrack.jetbrains.com/issue/VIM-765#comment=27-4264908 | |
set dialogescape=off | |
set nooneline | |
set highthightedyank | |
set NERDTree | |
set notimeout | |
set keep-english-in-normal | |
noremap J :action EditorJoinLines<CR> | |
"noremap / :action Find<CR> | |
"noremap ? :action Find<CR> | |
"noremap * :action FindWordAtCaret<CR> | |
"noremap n :action FindNext<CR> | |
"noremap N :action FindPrevious<CR> | |
noremap % :action EditorMatchBrace<CR> | |
nnoremap <C-t> :action Back<CR> | |
nnoremap <C-S-t> :action Forward<CR> | |
nnoremap <Leader>u :action GotoSuperMethod<CR> | |
nnoremap <Leader>i :action GotoImplementation<CR> | |
nnoremap <Leader>t :action GotoTest<CR> | |
nnoremap <Leader>T :action GotoTypeDeclaration<CR> | |
nnoremap <Leader>r :action GotoRelated<CR> | |
nnoremap <Leader>S :action ShowSiblings<CR> | |
nnoremap <Leader>F :action ShowFilePath<CR> | |
nnoremap <Leader>h :action ShowNavBar<CR> | |
nnoremap <Leader>v :action Vcs.QuickListPopupAction<CR> | |
nnoremap <Leader>c :action GotoClass<CR> | |
nnoremap <Leader>f :action GotoFile<CR> | |
nnoremap <Leader>s :action GotoSymbol<CR> | |
nnoremap <Leader>a :action GotoAction<CR> | |
nnoremap <Leader>o :action FileStructurePopup<CR> | |
nnoremap <Leader>e :action RecentFiles<CR> | |
nnoremap <Leader>E :action RecentChangedFiles<CR> | |
nnoremap <Leader>C :action RecentChanges<CR> | |
nnoremap <Leader>l :action RecentLocations<CR> | |
" easy motion | |
map F <Plug>(easymotion-bd-fn) | |
map S <Plug>(easymotion-sn) | |
map L <Plug>(easymotion-bd-jk) | |
map W <Plug>(easymotion-bd-w) | |
let g:EasyMotion_smartcase=1 | |
let g:EasyMotion_startofline=0 | |
" ; でリファクタリング | |
nnoremap ;R :action Refactorings.QuickListPopupAction<CR> | |
nnoremap ;r :action RenameElement<CR>i | |
nnoremap ;i :action Inline<CR>i | |
nnoremap ;d :action SafeDelete<CR>i | |
nnoremap ;v :action IntroduceVariable<CR>i | |
nnoremap ;f :action IntroduceField<CR>i | |
nnoremap ;c :action IntroduceConstant<CR>i | |
nnoremap ;p :action IntroduceParameter<CR>i | |
nnoremap ;m :action ExtractMethod<CR>i | |
" SHIFT+カーソルキーで範囲選択(ノーマルモード) | |
nnoremap <S-Left> :action EditorLeftWithSelection<CR> | |
nnoremap <S-Right> :action EditorRightWithSelection<CR> | |
nnoremap <S-Up> :action EditorUpWithSelection<CR> | |
nnoremap <S-Down> :action EditorDownWithSelection<CR> | |
" SHIFT+カーソルキーで範囲選択(インサートモード) | |
inoremap <S-Left> <C-O>:action EditorLeftWithSelection<CR> | |
inoremap <S-Right> <C-O>:action EditorRightWithSelection<CR> | |
inoremap <S-Up> <C-O>:action EditorUpWithSelection<CR> | |
inoremap <S-Down> <C-O>:action EditorDownWithSelection<CR> | |
" i_CTRL-N, i_CTRL-P でキーワード補完 | |
inoremap <C-P> <C-O>:action HippieBackwardCompletion<CR> | |
inoremap <C-N> <C-O>:action HippieCompletion<CR> | |
" mm, MMでメソッドに移動 | |
nnoremap mm :action MethodDown<CR> | |
nnoremap MM :action MethodUp<CR> | |
" ee, EEでエラーに移動 | |
nnoremap ee :action GotoNextError<CR> | |
nnoremap EE :action GotoPreviousError<CR> | |
nnoremap <A-1> :NERDTree<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment