Inputting dashes in Vim
From rhydd.org
Here are most of the characters representing different horizontal lines you can input in Vim, either directly or, as is the case for entries with two characters in the input column, using digraphs. Of course, most of these characters are only available in Unicode encodings. Deciding which ones should be used for which occasions is left as an excercise for the reader.
| Input | Ouput | Code point | Name | |
|---|---|---|---|---|
| - | - | 45 | U+002d | HYPHEN-MINUS |
| -- | | 173 | U+00ad | SOFT HYPHEN |
| -1 | ‐ | 8208 | U+2010 | HYPHEN |
| -N | – | 8211 | U+2013 | EN DASH |
| -M | — | 8212 | U+2014 | EM DASH |
| -3 | ― | 8213 | U+2015 | HORIZONTAL BAR |
| -2 | − | 8722 | U+2212 | MINUS SIGN |
| 3- | ┄ | 9476 | U+2504 | BOX DRAWINGS LIGHT TRIPLE DASH HORIZONTAL |
| 4- | ┈ | 9480 | U+2508 | BOX DRAWINGS LIGHT QUADRUPLE DASH HORIZONTAL |
Note that the soft hyphen is a shy creature and therefore may not appear.
