-
Notifications
You must be signed in to change notification settings - Fork 0
/
vscvimrc
34 lines (23 loc) · 1.32 KB
/
vscvimrc
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
set clipboard=unnamedplus
nmap <space> <leader>
xmap <space> <leader>
nmap <leader>w :w<CR>
nmap <leader>q :q<CR>
nmap <leader>v :vsplit<CR>
nmap <leader>h :split<CR>
nnoremap <C-Down> :call VSCodeCall("workbench.action.navigateDown")<CR>
nnoremap <C-Up> :call VSCodeCall("workbench.action.navigateUp")<CR>
nnoremap <C-Right> :call VSCodeCall("workbench.action.navigateRight")<CR>
nnoremap <C-Left> :call VSCodeCall("workbench.action.navigateLeft")<CR>
nnoremap <leader>gf :call VSCodeCall("workbench.action.navigateForward")<CR>
nnoremap <leader>gb :call VSCodeCall("workbench.action.navigateBack")<CR>
nnoremap <leader>f :call VSCodeCall("find-it-faster.findFiles")<CR>
nnoremap <leader>s :call VSCodeCall("find-it-faster.findWithinFiles")<CR>
nnoremap <leader>b :call VSCodeCall("workbench.action.toggleSidebarVisibility")<CR>
nnoremap <leader>nt :call VSCodeCall("editor.action.goToTypeDefinition")<CR>
nnoremap <leader>nd :call VSCodeCall("editor.action.goToDefinition")<CR>
nnoremap <leader>no :call VSCodeCall("workbench.action.showAllEditors")<CR>
nnoremap <leader>td a/*?*/<ESC>
nnoremap <silent> ? :<C-u>call VSCodeNotify('workbench.action.findInFiles', { 'query': expand('<cword>')})<CR>
nnoremap <leader>rf :call VSCodeNotify("eslint.executeAutofix")<CR>
nnoremap <leader>ri :call VSCodeNotify("editor.action.quickFix")<CR>