2024-05-03 20:25:08 +09:00
|
|
|
" プラグインの有効化
|
|
|
|
set surround
|
|
|
|
set commentary
|
|
|
|
set ideajoin
|
2024-05-03 22:15:16 +09:00
|
|
|
set highlightedyank
|
2024-05-05 21:40:14 +09:00
|
|
|
set easymotion
|
2024-05-03 20:25:08 +09:00
|
|
|
|
|
|
|
" その他オプションの有効化
|
|
|
|
set clipboard+=unnamedplus
|
|
|
|
set keep-english-in-normal
|
2024-05-03 22:15:16 +09:00
|
|
|
set incsearch
|
2024-05-03 20:25:08 +09:00
|
|
|
|
|
|
|
" キーバインド
|
|
|
|
let mapleader=" "
|
2024-05-03 22:15:16 +09:00
|
|
|
nnoremap <leader><leader>r :<C-u>source ~/.ideavimrc<CR>
|
2024-05-03 20:25:08 +09:00
|
|
|
nnoremap ew :<C-u>w<CR>
|
|
|
|
nnoremap eq :<C-u>wq<CR>
|
|
|
|
nnoremap Q :<C-u>quit!<CR>
|
|
|
|
nnoremap <C-s> :<C-u>%s///cg<left><left><left><left>
|
|
|
|
nnoremap k gk
|
|
|
|
nnoremap j gj
|
|
|
|
nnoremap <UP> gk
|
|
|
|
nnoremap <DOWN> gj
|
|
|
|
nnoremap O :<C-u>call append(expand('.'), '')<CR>j
|
|
|
|
nnoremap p ]p
|
|
|
|
nnoremap P ]P
|
|
|
|
nnoremap ]p p
|
|
|
|
nnoremap ]P P
|
|
|
|
nnoremap [m :<C-u>action MethodUp<CR>
|
|
|
|
nnoremap ]m :<C-u>action MethodDown<CR>
|
|
|
|
nnoremap [e :<C-u>action GotoPreviousError<CR>
|
|
|
|
nnoremap ]e :<C-u>action GotoNextError<CR>
|
2024-05-03 22:15:16 +09:00
|
|
|
nnoremap <leader>k :<C-u>action QuickJavaDoc<CR>
|
2024-05-03 20:25:08 +09:00
|
|
|
nnoremap <leader>d :<C-u>action Debug<CR>
|
|
|
|
nnoremap <leader>a :<C-u>action GotoAction<CR>
|
|
|
|
nnoremap <leader>G :<C-u>action Generate<CR>
|
|
|
|
nnoremap <leader>gn :<C-u>action NewClass<CR>
|
|
|
|
nnoremap <leader>go :<C-u>action OverrideMethods<CR>
|
|
|
|
nnoremap <leader>gc :<C-u>action GenerateConstructor<CR>
|
|
|
|
nnoremap <leader>gg :<C-u>action GenerateGetter<CR>
|
|
|
|
nnoremap <leader>gs :<C-u>action GenerateSetter<CR>
|
|
|
|
nnoremap <leader>ga :<C-u>action GenerateGetterAndSetter<CR>
|
|
|
|
nnoremap <leader>ge :<C-u>action GenerateEquals<CR>
|
|
|
|
nnoremap <leader>gt :<C-u>action GenerateTestMethod<CR>
|
|
|
|
nnoremap <leader>p :<C-u>action ReformatCode<CR>
|
|
|
|
nnoremap <leader>o :<C-u>action FileStructurePopup<CR>
|
|
|
|
nnoremap <leader>q :<C-u>action CloseContent<CR>
|
|
|
|
nnoremap <leader>Q :<C-u>action ReopenClosedTab<CR>
|
|
|
|
nnoremap <leader>e :<C-u>action SearchEverywhere<CR>
|
|
|
|
nnoremap <leader>f :<C-u>action GotoFile<CR>
|
|
|
|
nnoremap <leader>F :<C-u>action FindInPath<CR>
|
|
|
|
nnoremap <leader>s :<C-u>action GotoClass<CR>
|
|
|
|
nnoremap <leader>S :<C-u>action GotoSymbol<CR>
|
|
|
|
nnoremap <leader>t :<C-u>action ActivateTerminalToolWindow<CR>
|
|
|
|
nnoremap <leader>. :<C-u>action ActivateProjectToolWindow<CR>
|
|
|
|
nnoremap <leader>P :<C-u>action ManageRecentProjects<CR>
|
2024-05-03 22:15:16 +09:00
|
|
|
nnoremap <leader>; :<C-u>action ToggleLineBreakpoint<CR>
|
2024-05-03 20:25:08 +09:00
|
|
|
nnoremap <leader>j :<C-u>action Run<CR>
|
|
|
|
nnoremap <leader>w :<C-u>action HideAllWindows<CR>
|