Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<h1><a href="https://vim.sourceforge.io/scripts/script.php?script_id=30" rel="nofollow noreferrer">python.vim</a></h1> <p>Makes it much easier to navigate around python code blocks.</p> <p>Shortcuts:</p> <ul> <li><code>]t</code> -- Jump to beginning of block</li> <li><code>]e</code> -- Jump to end of block</li> <li><code>]v</code> -- Select (Visual Line Mode) block</li> <li><code>]&lt;</code> -- Shift block to left</li> <li><code>]&gt;</code> -- Shift block to right</li> <li><code>]#</code> -- Comment selection</li> <li><code>]u</code> -- Uncomment selection</li> <li><code>]c</code> -- Select current/previous class</li> <li><code>]d</code> -- Select current/previous function</li> <li><code>]&lt;up&gt;</code> -- Jump to previous line with the same/lower indentation</li> <li><code>]&lt;down&gt;</code> -- Jump to next line with the same/lower indentation</li> </ul> <h1><a href="https://vim.sourceforge.io/scripts/script.php?script_id=386" rel="nofollow noreferrer">python_match.vim</a></h1> <p>extends <code>%</code>:</p> <ul> <li><code>%</code> - cycle through if/elif/else, try/except/catch, for/continue/break</li> <li><code>g%</code> - move opposite of <code>%</code></li> <li><code>[%</code> - move to the beginning of the current code block</li> <li><code>]%</code> - move to the end of the current code block</li> </ul> <p>All the above motions work with Normal, Visual, and Operator-pending modes, so:</p> <ul> <li><code>d]%</code> - delete until the end of the current block</li> <li><code>v]%d</code> - should do the same, going through Visual mode so that you can see what is being deleted</li> <li><code>V]%d</code> - above, but with line selection</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload