Ad blocker interference detected!
Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers
Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.
|Jump to beginning of block|
|Jump to end of block|
|Select block (visual line mode)|
|Shift block to left|
|Shift block to right|
|Select current/previous class|
|Select current/previous function|
|Jump to previous line with same/lower indentation|
|Jump to next line with same/lower indentation|
I would suggest using "normal! " in the script as suggested here (http://stevelosh.com/blog/2011/09/writing-vim-plugins/#please-for-the-love-of-god-use-normal).
I had to locally modify the plugin to work correctly since I remapped <Up>,<Down>, etc..
I've noticed that at least some of the movement commands (
]F at least) don't update the jumplist, so
CTRL+O doesn't flip the user back to their previous position. An easy solution would be to modify the script to manually add the previous position to the jumplist by changing the mappings from this:
map ]j :call PythonDec("class", 1)<CR>
map ]j m':call PythonDec("class", 1)<CR>
There may well be a more elegant solution, but that seems to have worked for me.