-
Notifications
You must be signed in to change notification settings - Fork 1
/
.ideavimrc
99 lines (61 loc) · 1.85 KB
/
.ideavimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
" core
let mapleader = ' '
nmap <BS> <Leader>
nnoremap ; :
set number
set showmode
set showcmd
set showmatch
" コマンドモードに補完はないので意味ない
"set wildmenu
"set wildmode = longest:full,full
set incearch
set hlsearch
set wrapscan
set ignorecase
set smartcase
set clipboard-=ideaput
set clipboard+=unnamed,unnamedplus
set ideajoin
" keybind
nnoremap <Leader>ce :vsplit ~/.ideavimrc<CR>
nnoremap <Leader>cr :source ~/.ideavimrc<CR>
inoremap jk <ESC>
nnoremap <Leader>q :action CloseContent<CR>
nnoremap <Leader>vs :action SplitVertically<CR>
nnorempa <Leader>sp :action SplitHorizontally<CR>
nnoremap / :action Find<CR>
" nnoremap <C-;> :action SearchEverywhere<CR>
nnoremap <C-S-p> :action GotoAction<CR>
nnoremap <C-p> :action GotoFile<CR>
nnoremap gd :action GotoDeclaration<CR>
nnoremap gD :action GotoDeclarationOnly<CR>
nnoremap gr :action FindUsages<CR>
nnoremap gy :action GotoTypeDeclaration<CR>
nnoremap gi :action GotoImplementation<CR>
nnoremap gs :action GotoSuperMethod<CR>
nnoremap <Leader>rn :action RenameElement<CR>
nnoremap K :action QuickJavaDoc<CR>
nnoremap gk :action ShowUsages<CR>
nnoremap <Leader>gt :action GotoTest<CR>
nnoremap [c :action VcsShowPrevChangeMarker<CR>
nnoremap ]c :action VcsShowNextChangeMarker<CR>
nnoremap [d :action GotoPreviousError<CR>
nnoremap ]d :action GotoNextError<CR>
nnoremap <C-Up> :action EditorCodeBlockStart<CR>
nnoremap <C-Down> :action EditorCodeBlockEnd<CR>
nnoremap <Leader>t :action ActivateTerminalToolWindow<CR>
" plugins
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-surround'
Plug 'easymotion/vim-easymotion'
Plug 'machakann/vim-highlightedyank'
set which-key
" plugins/vim-easymotion
nmap s <Plug>(easymotion-s)
" plugins/IdeaVimExtension
set keep-english-in-normal-and-restore-in-insert
" plugins/which-key
set notimeout
let g:WhichKey_ShowVimActions = "true"
k