Wikia

Vim Tips Wiki

Changes: Single letter insert

Edit

Back to page

(Move categories to tip template)
(Remove html character entities)
 
Line 16: Line 16:
   
 
<pre>
 
<pre>
:map &lt;C-x&gt; ylpr
+
:map <C-x> ylpr
 
</pre>
 
</pre>
   
Line 23: Line 23:
   
 
<pre>
 
<pre>
:map ,i i?&lt;Esc&gt;r
+
:map ,i i?<Esc>r
 
" and
 
" and
:map ,a a?&lt;Esc&gt;r
+
:map ,a a?<Esc>r
 
</pre>
 
</pre>
   

Latest revision as of 09:07, September 29, 2008

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