Vscode-neovim: gj/gk not working in wrapped lines

Created on 12 Dec 2019  路  4Comments  路  Source: asvetliakov/vscode-neovim

As the title says gj and gk now behaves the same as normal j and k

enhancement

All 4 comments

it's not possible to determine width of vscode viewport so i'm setting neovim width to large value (500) and forcing set nowrap option. This probably won't be fixed for long time, sorry

Vote for this vscode request

Workaround:

nnoremap gk :<C-u>call rpcrequest(g:vscode_channel, 'vscode-command', 'cursorMove', { 'to': 'up', 'by': 'wrappedLine', 'value': v:count ? v:count : 1 })<CR>
nnoremap gj :<C-u>call rpcrequest(g:vscode_channel, 'vscode-command', 'cursorMove', { 'to': 'down', 'by': 'wrappedLine', 'value': v:count ? v:count : 1 })<CR>

Better to use VSCodeCall but it doesn't pass arguments properly now

Will add to next release

Big thanks for the workaround and all the effort! I wish I could replace my old vim extension with this and give more feedback, the only thing that stops me so far is the Chinese character issue 馃槒

Was this page helpful?
0 / 5 - 0 ratings

Related issues

trkoch picture trkoch  路  3Comments

erlais picture erlais  路  3Comments

anhyeast picture anhyeast  路  5Comments

albert-ying picture albert-ying  路  4Comments

pieterdd picture pieterdd  路  4Comments