VSCodeVim / Vim

:star: Vim for Visual Studio Code
http://aka.ms/vscodevim
MIT License
14.01k stars 1.32k forks source link

Folds do open automatic when moving over them #9244

Closed buhtz closed 2 months ago

buhtz commented 2 months ago

Describe the bug I am new to VSCode. I might be wrong and your plugin is not relevant for that behavior. So please redirect me in this case.

Folded code blocks unfold when touched by cursor.

To Reproduce I do fold everything in a py file with z + M. Works fine. But then when I navigate throw that file using j and k the folds do open automatically everytime my cursor touches them.

Expected behavior Just don't unfold automatic.

Environment (please complete the following information):

"Developer: Show Running Extensions" do not show me plain text that I could copy. Should I add a screenshot?

image

HenryTSZ commented 2 months ago

you can add this settings:

"vim.foldfix": true,

to fix the fold bug

buhtz commented 2 months ago

Hello Henry,

thank you very much for your reply.

you can add this settings:

Where exactly? Do you mean the settings.json? And where in the existing json structure? Currently my settings.json looks like this:

{
    "workbench.colorTheme": "One Monokai",
    "security.workspace.trust.untrustedFiles": "open",
    "launch": {
        "configurations": [
        ]
    },
}

Regulary I am an Emacs user and has no problems with using text files for configuration. But in context of VSCodium/VSCode I wonder why such a fancy GUI IDE doesn't has a settings dialog and torture its users with json files.

HenryTSZ commented 2 months ago

Where exactly? Do you mean the settings.json? And where in the existing json structure?

right, settings.json

{
    "workbench.colorTheme": "One Monokai",
    "security.workspace.trust.untrustedFiles": "open",
    "launch": {
        "configurations": [
        ]
    },
    "vim.foldfix": true,
}

But in context of VSCodium/VSCode I wonder why such a fancy GUI IDE doesn't has a settings dialog and torture its users with json files.

Use ctrl+, open GUI settings page