added vscode extensions
This commit is contained in:
parent
7cde0829be
commit
26e2a50441
316 changed files with 37301 additions and 0 deletions
16
.vscode/extensions/asvetliakov.vscode-neovim-0.0.82/vim/vscode-motion.vim
vendored
Normal file
16
.vscode/extensions/asvetliakov.vscode-neovim-0.0.82/vim/vscode-motion.vim
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
function! s:toFirstCharOfScreenLine()
|
||||
call VSCodeNotify('cursorMove', { 'to': 'wrappedLineFirstNonWhitespaceCharacter' })
|
||||
endfunction
|
||||
|
||||
function! s:toLastCharOfScreenLine()
|
||||
call VSCodeNotify('cursorMove', { 'to': 'wrappedLineLastNonWhitespaceCharacter' })
|
||||
" Offfset cursor moving to the right caused by calling VSCode command in Vim mode
|
||||
call VSCodeNotify('cursorLeft')
|
||||
endfunction
|
||||
|
||||
nnoremap g0 <Cmd>call <SID>toFirstCharOfScreenLine()<CR>
|
||||
nnoremap g$ <Cmd>call <SID>toLastCharOfScreenLine()<CR>
|
||||
|
||||
" Note: Using these in macro will break it
|
||||
nnoremap gk <Cmd>call VSCodeNotify('cursorMove', { 'to': 'up', 'by': 'wrappedLine', 'value': v:count ? v:count : 1 })<CR>
|
||||
nnoremap gj <Cmd>call VSCodeNotify('cursorMove', { 'to': 'down', 'by': 'wrappedLine', 'value': v:count ? v:count : 1 })<CR>
|
||||
Loading…
Add table
Add a link
Reference in a new issue