logo

blog

My website can't be that messy, right? git clone https://hacktivis.me/git/blog.git

editors.shtml (1237B)


  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <!--#include file="/templates/head.shtml" -->
  5. <title>vim — lanodan’s cyber-home</title>
  6. </head>
  7. <body>
  8. <!--#include file="/templates/en/nav.shtml" -->
  9. <main>
  10. Few notes for nice but not well-know usages of ed and ed-based editors
  11. <h2>ed</h2>
  12. <ul>
  13. <li><code>+</code> next / previous <code>-</code></li>
  14. <li>CAPS instead of ! for forcing</li>
  15. <li>dot/^C for ending mode</li>
  16. <li><code>a</code>ppend; <code>c</code>hange; <code>i</code>nsert (before)</li>
  17. <li><code>,p</code> print everything</li>
  18. </ul>
  19. <h2>Vim</h2>
  20. <ul>
  21. <li>^a → iterate</li>
  22. <li>^x → de-iterate</li>
  23. <li>% → next (curly/square) bracket</li>
  24. <li>^ → start of the line</li>
  25. <li>$ → end of the line</li>
  26. <li>window-related<ul>
  27. <li>^w = → tile window</li>
  28. <li>^w j/k → previous/next</li>
  29. <li>^w c → close window</li>
  30. <li>^w f → edit cursor-selected file</li>
  31. </ul></li>
  32. <li>spelling (variables: spell &amp; spellang)<ul>
  33. <li>]s → next misspelled word</li>
  34. <li>[s → previous misspelled word</li>
  35. <li>z= → find suggestions</li>
  36. <li>zg → add to wordlist</li>
  37. </ul></li>
  38. </ul>
  39. </main>
  40. <!--#include file="/templates/en/footer.shtml" -->
  41. </body>
  42. </html>