Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • \$\begingroup\$ Here's a couple quick tips after one glance over. 1. You do <number>a <esc> a lot. If you do yl on a space, you could replace this with <number>p. That should save around 8. 2. You could replace ea with A. You could probably take even more if you change your approach, but those are the quick tips I see. \$\endgroup\$ Commented May 29, 2016 at 14:58
  • \$\begingroup\$ @DrGreenEggsandHamDJ Is there any way that I could map a single keystroke to typing _ and | etc? \$\endgroup\$ Commented May 29, 2016 at 15:16
  • \$\begingroup\$ I'm on my phone, so I can't test this, but I think this is incorrect. :s only replaces on one line. You want :% s. You could also save some keystrokes by doing :im (imap) instead of search and replace. (Although you might need to use ctrl-v or ctrl-q to map to a space) \$\endgroup\$ Commented May 29, 2016 at 16:50
  • \$\begingroup\$ @DrGreenEggsandHamDJ Excellent, but using :im can only golf a few more bytes I suppose. \$\endgroup\$ Commented May 29, 2016 at 16:59