-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvisual_studio.vimrc
42 lines (30 loc) · 1.06 KB
/
visual_studio.vimrc
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
:echo ">^.^<"
:set number
:set hlsearch
:set incsearch
let mapleader = " "
" move this file to a new tab group through vertical splitting
:nnoremap <leader>v :vsplit<CR><C-w>hZZ
" edit and source vimrc
:nnoremap <leader>ev :tabnew ~/_vimrc<CR>
:nnoremap <leader>sv :so ~/_vimrc<CR>
" insert enter before or after line
:nnoremap [<Space> O<Esc>
:nnoremap ]<Space> o<Esc>
" insert enter before cursor
:nnoremap <S-CR> i<CR><Esc>l
" go shortcuts
:nnoremap gi :vsc Edit.GoToImplementation<CR>
:nnoremap gr :vsc Edit.FindAllReferences<CR>
:nnoremap gw <C-w>w
:nnoremap gcc :vsc Edit.ToggleComment<CR>
:vnoremap gc :vsc Edit.ToggleComment<CR><Esc><Esc>
" manually mapping tab traversal because it doesn't work with vs2019 yet
:nnoremap gt :vsc Window.NextTab<CR>
:nnoremap gT :vsc Window.PreviousTab<CR>
" clear and edit line at indentation
:nnoremap cc ^C
" remove highlights
:nnoremap <leader>rh :noh<CR>
" move lines accomplished through AHK <A-jkhl> <A-arrow>
" arrow keys can be used through AHK <^+-jkhl> <arrow>, particularly useful for navigating vs2017's test explorer