(Change <tt> to <code>, perhaps also minor tweak.)
Line 3:
Line 3:
==Shortcuts==
==Shortcuts==
{| class="cleartable"
{| class="cleartable"
−
|<tt>]t</tt> || Jump to beginning of block
+
|<code>]t</code> || Jump to beginning of block
|-
|-
−
|<tt>]e</tt> || Jump to end of block
+
|<code>]e</code> || Jump to end of block
|-
|-
−
|<tt>]v</tt> || Select block (visual line mode)
+
|<code>]v</code> || Select block (visual line mode)
|-
|-
−
|<tt>]<</tt> || Shift block to left
+
|<code>]<</code> || Shift block to left
|-
|-
−
|<tt>]></tt> || Shift block to right
+
|<code>]></code> || Shift block to right
|-
|-
−
|<tt>]#</tt> || Comment selection
+
|<code>]#</code> || Comment selection
|-
|-
−
|<tt>]u</tt> || Uncomment selection
+
|<code>]u</code> || Uncomment selection
|-
|-
−
|<tt>]c</tt> || Select current/previous class
+
|<code>]c</code> || Select current/previous class
|-
|-
−
|<tt>]d</tt> || Select current/previous function
+
|<code>]d</code> || Select current/previous function
|-
|-
−
|<tt>]<up></tt> || Jump to previous line with same/lower indentation
+
|<code>]<up></code> || Jump to previous line with same/lower indentation
|-
|-
−
|<tt>]<down></tt> || Jump to next line with same/lower indentation
+
|<code>]<down></code> || Jump to next line with same/lower indentation
|}
|}
Line 33:
Line 33:
----
----
−
I've noticed that at least some of the movement commands (<tt>]j</tt>, <tt>]J</tt>, <tt>]f</tt> and <tt>]F</tt> at least) don't update the jumplist, so <tt>CTRL+O</tt> 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:
+
I've noticed that at least some of the movement commands (<code>]j</code>, <code>]J</code>, <code>]f</code> and <code>]F</code> at least) don't update the jumplist, so <code>CTRL+O</code> 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:
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 (]j, ]J, ]f and ]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>
to this:
map ]j m':call PythonDec("class", 1)<CR>
There may well be a more elegant solution, but that seems to have worked for me.