Single letter insert

From Vim Tips Wiki

Jump to: navigation, search

Duplicate tip

This tip is very similar to the following:

These tips need to be merged – see the merge guidelines.

Tip 647 Printable Monobook Previous Next

created January 30, 2004 · complexity basic · author Astrobe · version 5.7


Often I have to insert only one character (typically a paren).

:map <C-x> ylpr

[edit] Comments

Doesn't work when there is nothing already on the line. I use

:map ,i i?<Esc>r
" and
:map ,a a?<Esc>r

See VimTip466.


Personal tools