Sal's

Some useful Vim stuff for prose

A lot of Vim tricks are geared toward working with source code, which I don’t do so much anymore. Below are some that are specifically helpful for working with prose.

This list is not remotely exhaustive. I’m limiting it to stuff regular folks like me might use on a regular basis. I’m also skipping past the basics like w / W / b / B / etc. (If you’re new to Vim, try vimtutor in your terminal.)

If you have a favorite tidbit that I should include here, or if I made any mistakes, please email me!

Text objects and editing commands

You can read more about these by looking up help for the relevant text object: :help iw, :help as, etc.

Movements

Spelling

Note: Spelling needs to be enabled in your config with :set spell or :set spell spelllang=en_us.

Surround

These require a plugin, but the surround plugins are perhaps the most popular out there. I’m using mini.surround in Neovim.

With a visual selection, for example:

Digraphs

In Insert mode:

See :digraphs or :help digraph-table for more.

A couple more goodies

#Modal-Editing #Vim #Writing