Wikia

Vim Tips Wiki

Single letter insert

Talk0
1,613pages 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

CommentsEdit

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