Skip to content

Instantly share code, notes, and snippets.

@coke

coke/editors.md Secret

Last active March 8, 2023 14:19
Show Gist options
  • Save coke/41ce9a8a7f04cd219799e71002eb676d to your computer and use it in GitHub Desktop.
Save coke/41ce9a8a7f04cd219799e71002eb676d to your computer and use it in GitHub Desktop.

Helpful tips for editing the docs

vim

Several of us that work on docs are old school vim users*

Entering unicode with digraphs

While in insert mode you can use these digraphs:

Setup Sequence Inserts
default Control-K space space non breaking space
default Control-K < < «
default Control-K > > »
dig nl 9252 " SYMBOL FOR NEWLINE Control-K n l

If not default, add the dig lines above to your ~/.vimrc.

For a full list of digraphs, see https://vimdoc.sourceforge.net/htmldoc/digraph.html, look for "digraph table".

* Listen, I learned how to use vi on the MTS system at RPI back in the 80s, I can't not use it at this point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment