forked from drewolson/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathideavimrc
52 lines (43 loc) · 955 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
41
42
43
44
45
46
47
48
49
50
51
52
"
" plugins
"
set surround
"
" basic config
"
set backspace=indent,eol,start
set hidden
set hlsearch
set ignorecase
set incsearch
set nofoldenable
set wildmenu
set number
set ruler
set scrolloff=5
set showmatch
set smartcase
"
" mappings
"
map <Leader>ff <Action>(SearchEverywhere)
" This function wrapper is needed to escape visual mode after the format...
function! ReformatCodeAndUnSelect()
action ReformatCode
endfunction
command! -nargs=0 ReformatCodeAndUnSelect :call ReformatCodeAndUnSelect()
map gf :ReformatCodeAndUnSelect<CR>
map gF :ReformatCodeAndUnSelect<CR>
" vv to unselect the text.
map gc :action CommentByLineComment <bar> vv<CR>
map ga <Action>(ShowIntentionActions)
map gh <Action>(ShowErrorDescription)
map gp <Action>(FindInPath)
" Look into <Action>(EditorEscape).
" consistency
nnoremap <silent> k gk
nnoremap <silent> j gj
nnoremap <silent> Y y$
" fix ctrl-c block insert mode
inoremap <C-c> <Esc>
vnoremap <C-c> <Esc>