Open kiryph opened 6 years ago
I think I understand your motivation. What you want is to make vmp respect current indent-level to determine what's next/previous fold.
I once implemented it in that way(respecting indent level to determine enclosed fold), but not released it. I just find current behavior is useful for me. I partially agree that in-python and in-coffee-script, you requested behavior might be usefull. But I didn't choose differentiate behavior based on language.
Btw, don't you use vmp's default [
and ]
which is mapped to move-up-to-edge
, move-down-to-edge
.
Which is more general purpose and IMO well fit motion especially like python and coffee-script(significant indentation language).
Thanks for your response. I think you got me right 😃.
Any chance you add two additional functions for people like me which provide this feature?
And thanks for your note about move-up-to-edge
and move-down-to-edge
. I will now use:
'] ]' : 'vim-mode-plus:move-down-to-edge'
'[ [' : 'vim-mode-plus:move-up-to-edge'
I want to use following mappings from vim in vmp as well
:h [z
:In order to achieve this, my
keymap.cson
looks like:Consider following example python file
SimpylFold generates following folds in vim (see foldcolumn):
Quite similar in Atom (except that there is another foldlevel for the if-clause):
Differences between vmp and vim
[z
: cursor on line number 8:[z
should move the cursor to line number 1 and not to line number 5.]z
: move to the end of the current fold, not to the end of the next nested foldEditor and system information
vim-mode-plus version: 1.28.1
OS: macOS Sierra 10.12.6
Check list
You have to check all before open issue.
atom --version
), vim-mode-plus version, and OS version(e.g. macOS Sierra 10.12.3).