XVimProject / XVim

Xcode plugin for Vim keybindings
MIT License
5.16k stars 596 forks source link

hjkl navigation ignores code folds, and continues to walk over every line [$100] #534

Open ryanbooker opened 11 years ago

ryanbooker commented 11 years ago

Should treat a code fold as a single line.

--- There is a **[$100 open bounty](https://www.bountysource.com/issues/1446121-hjkl-navigation-ignores-code-folds-and-continues-to-walk-over-every-line?utm_campaign=plugin&utm_content=tracker%2F252770&utm_medium=issues&utm_source=github)** on this issue. Add to the bounty at [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F252770&utm_medium=issues&utm_source=github).
JohnTheAppleSeed commented 11 years ago

Actually it should open the fold. It goes over it only in visual mode.

But yes movements with folds don't work well right now.

weaksauce commented 11 years ago

I think I agree with @ryanbooker... it would be much more useful to have it skip over the folded regions in that mode like it's done in most editors. In vim, my folded regions are not unfolded as I navigate with jk.

JohnTheAppleSeed commented 11 years ago

hmm you're right, it's in insert mode that it opens them

anyway, we're definitely not there yet :/

samson333 commented 9 years ago

Is this issue fixed in in recent XCode? I found it quite annoying if I can't move my cursor out from the fold. Do you have any workaround for this issue?

hitzhangjie commented 6 years ago

No, it hasn't been fixed, Xcode 9.4.1