The VSCodeVim team prioritizes issues based on reaction count.
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT
Environment:
What happened:
I collapse a code block from line 11 to line 20.
and on the line 11 ,I press J or arrow down
then the code block was expaned.
What did you expect to happen:
The code block keep collapsed and the cursor jump to line 21
How to reproduce it:
Unluckily, I doubt this is something we can change. Folds are largely outside of our control, and even our current fix for moving across folds is unbelievably hackish.
According to https://github.com/Microsoft/vscode/issues/16858 they're saying it is the extension's issue. What would need to happen to get it to work?
Looks like this is fixed in https://github.com/VSCodeVim/Vim/pull/1552? Add "vim.foldfix": true to your settings.json fixes it for me
@danawoodman ah I thought he meant <shift-j>. That actually does work properly. If so, this is a duplicate.
I haven't closed the other relevant fold issue as our current solution is unbelievably hacky (and not in a good way).
DO NOT use vim.foldfix.
you need gj to replace j.
this tips is in the README file's Key remapping chapter.
DO NOTuse vim.foldfix.you need
gjto replacej.this tips is in the README file's
Key remappingchapter.
using this mapping, commands like 100j becomes nightmare...
vim.foldfix works faster but still far away from the original setting.
@Chillee ideas on reopening this issue?
Most helpful comment
Looks like this is fixed in https://github.com/VSCodeVim/Vim/pull/1552? Add
"vim.foldfix": trueto yoursettings.jsonfixes it for me