-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vsvimrc
82 lines (70 loc) · 2.26 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
" Variables
let mapleader="\<Space>"
set clipboard=unnamed
set scrolloff=12
set smartcase
set ignorecase
set incsearch
set hlsearch
set relativenumber
set number
" Visual star
vmap * y/\<<C-r>*\><CR>
" Easy Movement
noremap K {
noremap J }
noremap H ^
noremap L $
noremap gb '.
nmap <C-u> 15k
nmap <C-d> 15j
vmap <C-u> 15k
vmap <C-d> 15j
" Global Commands
nmap <leader>fs :w<CR>
nmap <leader>fS :vsc File.SaveAll<CR>
nmap ;e :vsc View.SolutionExplorer<CR>
nmap <leader>.a :vsc File.SaveAll<CR>
nmap <leader>.z :vsc CodeMaid.FindInSolutionExplorer<CR>
" Windows
nmap <C-w>x :vsc Window.MoveToNextTabGroup<CR>
nmap <C-w>p :vsc Window.MoveToPreviousTabGroup<CR>
nmap <C-O> :vsc View.NavigateBackward<CR>
nmap <C-I> :vsc View.NavigateForward<CR>
vmap <C-O> :vsc View.NavigateBackward<CR>
vmap <C-I> :vsc View.NavigateForward<CR>
nnoremap <Leader>wn :vsc Window.PreviousDocumentWindowNav<CR>
nnoremap <Leader>wp :vsc Edit.GoToRecentFile<CR>
" Comments key bindings
nmap gc :vsc Edit.CommentSelection<CR>
nmap gcu :vsc Edit.UnCommentSelection<CR>
vmap gc :vsc Edit.CommentSelection<CR>
vmap gcu :vsc Edit.UnCommentSelection<CR>
" Search
nmap <leader>ef :vsc Tools.InvokeAceJumpCommand<CR>
nnoremap <Leader>ff :vsc Edit.GoToRecentFile<CR>
" nnoremap <Leader>fs :vsc Edit.GoToSymbol<CR>
nnoremap <Leader>ft :vsc Edit.FindInFiles<CR>
nnoremap <leader>eg :vsc Tools.InvokePeasyMotion<CR>
nnoremap <leader>ej :vsc Tools.InvokePeasyMotionJumpToLineBegining<CR>
nnoremap <leader>es :vsc Tools.InvokePeasyMotionTwoCharJump<CR>
nnoremap <leader>ee :vsc Tools.InvokePeasyMotionLineJumpToWordEnding<CR>
" Go To
nmap gi :vsc Edit.GoToImplementation<CR>
nmap gh :vsc Edit.QuickInfo<CR>
nmap gr :vsc Edit.FindAllReferences<CR>
nmap gp :vsc Edit.PeekDefinition<CR>
nmap gq :vsc View.QuickActionsForPosition<CR>
" Debug
nmap <leader>db :vsc Debug.ToggleBreakPoint<CR>
nmap <leader>dbd :vsc Debug.DeleteAllBreakPoints<CR>
nmap <leader>de :vsc Debug.EnableBreakPoint<CR>
nmap <leader>dee :vsc Debug.EnableAllBreakPoints<CR>
nmap <leader>ded :vsc Debug.DisableAllBreakPoints<CR>
imap <C-v> npi<CR>
" Refactor
nnoremap <leader>rr :vsc Refactor.Rename<CR>
" Debug
" nmap <leader>db
" Formatting
nmap <leader>f= :vsc CodeMaid.CleanupActiveDocument<CR>