Vim Tips Wiki
(Fix broken tip template, and small clean)
(Change to TipImported template + severe manual clean)
Line 1: Line 1:
  +
{{TipImported
{{Tip
 
 
|id=398
 
|id=398
  +
|previous=397
|title=Mapping for quicker access to macros
 
  +
|next=399
 
|created=January 10, 2003
 
|created=January 10, 2003
 
|complexity=basic
 
|complexity=basic
Line 7: Line 8:
 
|version=5.7
 
|version=5.7
 
|rating=16/11
 
|rating=16/11
|text=
 
 
}}
 
}}
 
 
Use this mapping as a convenient way to play a recorded macro:
 
Use this mapping as a convenient way to play a recorded macro:
 
:nnoremap <space> @q
 
:nnoremap <space> @q
Line 23: Line 22:
 
*{{help|recording}}
 
*{{help|recording}}
   
== Comments ==
+
==Comments==
   
 
----
 
----

Revision as of 12:33, 2 November 2007

Tip 398 Printable Monobook Previous Next

created January 10, 2003 · complexity basic · author torelg · version 5.7


Use this mapping as a convenient way to play a recorded macro:

:nnoremap <space> @q

Start recording keystrokes by typing qq.

End recording with q (first press Escape if you're in insert mode).

Play the recorded keystrokes by hitting space.

References

Comments