You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
With auto indent enabled, shift-O to insert a line above the current line does not preserve indent if line above has no indent. Vim does preserve indent in these cases
To Reproduce
Given a piece of indented code (space indented, where empty lines contain no space/indent), with _ as the cursor
Hello
World_
when pressing shift-O, the expected Vim behaviour would be
I just tried, and I still experience the issue. However, it seems to work fine when editing a .go file and not when editting a .md or .py file.
This made me wonder if it could be a tab (indentation) vs. spaces thing, but setting "detect indentation" and "insert spaces" to false, resulting in tabs in the .py file doesn't make a difference.
I have disabled all extension except for VSCodeVim.
Describe the bug
With auto indent enabled, shift-O to insert a line above the current line does not preserve indent if line above has no indent. Vim does preserve indent in these cases
To Reproduce
Given a piece of indented code (space indented, where empty lines contain no space/indent), with
_
as the cursorwhen pressing shift-O, the expected Vim behaviour would be
but the actual result is
Environment:
VSCode 1.35.1
Version: 1.35.1
Commit: c7d83e57cd18f18026a8162d042843bda1bcf21f
Date: 2019-06-12T14:27:31.086Z
Electron: 3.1.8
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Linux x64 4.15.0-51-generic
VSCodeVim 1.8.1
Ubuntu 18.04
Additional context
This behaviour was correct a few versions/weeks ago.
The text was updated successfully, but these errors were encountered: