editors.shtml (1237B)
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <!--#include file="/templates/head.shtml" -->
- <title>vim — lanodan’s cyber-home</title>
- </head>
- <body>
- <!--#include file="/templates/en/nav.shtml" -->
- <main>
- Few notes for nice but not well-know usages of ed and ed-based editors
- <h2>ed</h2>
- <ul>
- <li><code>+</code> next / previous <code>-</code></li>
- <li>CAPS instead of ! for forcing</li>
- <li>dot/^C for ending mode</li>
- <li><code>a</code>ppend; <code>c</code>hange; <code>i</code>nsert (before)</li>
- <li><code>,p</code> print everything</li>
- </ul>
- <h2>Vim</h2>
- <ul>
- <li>^a → iterate</li>
- <li>^x → de-iterate</li>
- <li>% → next (curly/square) bracket</li>
- <li>^ → start of the line</li>
- <li>$ → end of the line</li>
- <li>window-related<ul>
- <li>^w = → tile window</li>
- <li>^w j/k → previous/next</li>
- <li>^w c → close window</li>
- <li>^w f → edit cursor-selected file</li>
- </ul></li>
- <li>spelling (variables: spell & spellang)<ul>
- <li>]s → next misspelled word</li>
- <li>[s → previous misspelled word</li>
- <li>z= → find suggestions</li>
- <li>zg → add to wordlist</li>
- </ul></li>
- </ul>
- </main>
- <!--#include file="/templates/en/footer.shtml" -->
- </body>
- </html>