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*

6
  • \$\begingroup\$ What do I have to type, starting from a bash prompt, assuming I have vim installed, to see the result? \$\endgroup\$ Commented Mar 13, 2018 at 13:03
  • \$\begingroup\$ Type vim, press enter, type the input number (e.g. 3) in the buffer then, from normal mode, press the sequence of keys from the post. \$\endgroup\$ Commented Mar 13, 2018 at 13:09
  • \$\begingroup\$ Make sure to use vanilla vim \$\endgroup\$ Commented Mar 13, 2018 at 13:14
  • \$\begingroup\$ There was a typo in the code. Just fixed it. \$\endgroup\$ Commented Mar 13, 2018 at 13:17
  • 1
    \$\begingroup\$ Works! <kbd>I</kbd> is a capital i, not ell. :set nowrap to see the result, for 4 and more. \$\endgroup\$ Commented Mar 14, 2018 at 12:50