How do I close the current window in Vim?
<C-w>c
The c (Ctrl+w then c) command closes the current window without closing the buffer it contains.
4 results for "ctrl w q"
<C-w>c
The c (Ctrl+w then c) command closes the current window without closing the buffer it contains.
Write keystrokes in buffer, then "qy$
Instead of recording a macro in real-time (where mistakes mean starting over), you can write the keystrokes as text in a buffer, edit them visually, and then ya
macros #macros #editing #registers #workflow #best-practices
:let @q = "dwelp"
Recording macros with q works well for simple sequences, but complex macros with special keys can be hard to get right in one take.
:let @a="text"
:let @{register}=".