Wikia

Vim Tips Wiki

Single letter insert

Talk0
1,613pages on
this wiki
Revision as of 09:07, September 29, 2008 by JohnBot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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