Vim
Vim copied to clipboard
`j` and `k` do not account for tab size
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG
What happened:
Note: The second line start with a tab indent.
Default(disabled vim plugin):
enable vim plugin:(pressing gj can solve, but what about insert and visual mode)
or Insert mode:
Visual mode:
What did you expect to happen: Like vscode default show or native vim. How to reproduce it (as minimally and precisely as possible):
Environment:
- Extension (VsCodeVim) version:0.11.2
- VSCode version:1.12.1
- OS version:4.15.9-1-ARCH
I have the same issue with my vim plugin and it happens in any lines.
I have the same issue, it sames because of vscode vim thinking tab width is 1. if you set tabwidth=1 or replace tab to space. it will be OK!
not sure if it's helpful but here's a similar yet solved issue of vscode-neovim: https://github.com/asvetliakov/vscode-neovim/issues/275
I confirmed https://github.com/asvetliakov/vscode-neovim works correctly. Can you adopt the same workaround?
Since Golang forces us to use tabs, using Golang is very painful because of this bug.
Dear. contributers
Hello. I'm not a typescript developer. But, I think...
The getWord function should be modified in textEditor.ts (for every this.whitespaceRegExp.test() used)
+ private static readonly tabRegExp = new RegExp('\\t');
+ let editorTabsize = editor.tabSize;
<before>
while (this.whitespaceRegExp.test(line[firstNonBlank])) {
firstNonBlank++;
......
<after>
while (this.whitespaceRegExp.test(line[firstNonBlank])) {
if (this.tabRegExp.test(line[firstNonBlank])){
firstNonBlank += editorTabsize;
}else{
firstNonBlank++;
}
......
In position.ts, The value of 'character' is different from the 'Col' value on vscode status bar. So the getLeft() function returns wrong horizontal position.
this was fixed in #8756