sponsor Vim development Vim logo Vim Book Ad

basic Tip #647: Single letter insert

 tip karma   Rating 0/4, Viewed by 1182 

created:   January 30, 2004 6:40      complexity:   basic
author:   Astrobe      as of Vim:   5.7


Often I have to insert only one character ( typically a paren)
:map <C-x> ylpr


 rate this tip  Life Changing Helpful Unfulfilling 

<<moving lines up/down in a file | Uniq - Removing duplicate lines >>

Additional Notes

Anonymous, January 30, 2004 6:51
Doesn't work when there is nothing already on the line. I use
:map ,i i?<Esc>r
and
:map ,a a?<Esc>r
Anonymous, January 30, 2004 6:53
The previous note wasn't an original, but grew out of vimtip #466 .
If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to [email protected] after searching the archive. Help Bram help Uganda.
Sponsored by Web Concept Group Inc. SourceForge Logo