-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_ideavimrc
48 lines (37 loc) · 1.04 KB
/
dot_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
set NERDTree
" #######################################################################
" KEY MAPPING
"
" replace esc by j - k
:inoremap jk <esc>
:inoremap <esc> <nop>
let mapleader=" "
:map <leader>e :NERDTreeFocus<CR>
:map <leader>cf <action>(ReformatCode)
:map <leader>cr <action>(RenameElement)
:map <leader>sg <action>(FindInPath)
:map <leader>ff <action>(GotoFile)
:map <leader>gc <action>(CommentByLineComment)
:map <leader>tt <action>(RunClass)
:map gI <action>(ReSharperGotoImplementation)
" #######################################################################
" SEARCH / REPLACE
"
" Enable Highlight Search
set hlsearch
" Highlight while search
set incsearch
" Case Insensitivity Pattern Matching
set ignorecase
" Overrides ignorecase if pattern contains upcase
set smartcase
" #######################################################################
" EDITOR BEHAVIOUR
"
" Line numbers
set number
set relativenumber
" show at list one line above/below cursor
set scrolloff=1
" show at least 5 chars begin/end of line
set sidescrolloff=5