Vim Tips Wiki

Single letter insert

Revision as of 09:07, September 29, 2008 by JohnBot (Talk | contribs)

1,619pages on
this wiki

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


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.

Around Wikia's network

Random Wiki