-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.ideavimrc
40 lines (32 loc) · 992 Bytes
/
.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
" Highlight search matches
set hlsearch
" Ignore case in search
set ignorecase
set smartcase
" Show where search pattern typed so far matches
set incsearch
" Use system clipboard
set clipboard+=unnamed
" Mappings
nmap gcc :action CommentByLineComment<CR>
nnoremap <Leader>y :action Switcher<CR>
nnoremap <Leader>a :action FindInPath<CR>
nnoremap <Leader>r :source ~/.ideavimrc<CR>
nnoremap <Leader>" :split<CR>
nnoremap <Leader>% :vsplit<CR>
nnoremap <Leader>w :w<CR>
" Running tests
nnoremap <Leader>tf :action RunClass<CR>
nnoremap <Leader>tl :action Run<CR>
nnoremap <Leader>tn :action RunClass<CR>
nnoremap <Leader>ts :action RunConfiguration<CR>
" Jumping between hunks
nnoremap ]c :action JumpToNextChange<CR>
nnoremap [c :action JumpToLastChange<CR>
" PHPStorm specific
nnoremap <Leader><Leader> :action GotoAction<CR>
nnoremap <Leader>f :action HideAllWindows<CR>
nnoremap <Leader>g :action Generate<CR>
nnoremap <Leader>rr :action RenameElement<CR>
" Extensions
set surround