-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_vsvimrc
52 lines (37 loc) · 1.11 KB
/
_vsvimrc
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
:inoremap jk <esc>
:inoremap <esc> <nop>
let mapleader=" "
nmap <C-O> :vsc View.NavigateBackward<CR>
nmap <C-I> :vsc View.NavigateForward<CR>
nmap <S-H> :vsc Window.PreviousTab<CR>
nmap <S-L> :vsc Window.NextTab<CR>
nmap <Leader>sg :vsc Edit.FindinFiles<CR>
nmap gI :vsc Edit.GoToImplementation<CR>
nmap gd :vsc Edit.GoToDefinition<CR>
nmap gr :vsc Edit.FindAllReferences<CR>
nmap <Leader>cf :vsc Edit.FormatDocument<CR>
nmap <Leader>cr :vsc Refactor.Rename<CR>
nmap <Leader>ff :vsc Edit.GoToFile<CR>
nmap <S-k> :vsc Edit.PeekDefinition<CR>
vmap gc :vsc Edit.CommentSelection
" #######################################################################
" 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