How do I scroll and copy text from a terminal buffer in Vim?
<C-w>N
When using Vim's built-in :terminal, the buffer is in Terminal-Job mode by default, meaning all keystrokes go to the running shell.
225 results for "paste"
<C-w>N
When using Vim's built-in :terminal, the buffer is in Terminal-Job mode by default, meaning all keystrokes go to the running shell.
"=
The expression register ("=) lets you evaluate any Vim expression and insert its result as text.
qQ...q
When you record a macro into register q with qq.
:call setreg('a', @a . 'text', 'l')
How it works Vim provides two functions for advanced register manipulation: setreg() and getreg().
:t.
The :t (short for :copy) command copies lines from one location to another.
:let @/ = "pattern"
Assigning a string directly to the search register @/ with :let causes Vim to highlight all matches (if hlsearch is enabled) without performing a search or movi
@+
In Vim, @{register} executes the contents of any register as a macro.
:let @q = @a . @b
Macros in Vim are stored as plain text in named registers.
:put ={expression}
The :put command inserts the contents of a register as a new line below the cursor.
<C-r>=
The expression register (=) lets you evaluate Vimscript expressions on the fly and insert the result directly into your text.
registers #editing #insert-mode #registers #productivity #math
<C-r><C-a>
When you are in command-line mode, inserts the word under the cursor (alphanumeric and _ only).
:let @q='commands'
Macros in Vim are stored in registers as plain text.
:let @q = '{keystrokes}'
You can assign a string directly to any register using :let @{reg} = '.
:let @a = @"
Vim's :let command lets you read and write register contents as strings, making it possible to copy, combine, or modify register values without ever leaving the
:let @a = substitute(@a, "old", "new", "g")
When a recorded macro has a typo or wrong command buried inside it, you don't have to re-record the entire thing.
setreg()
The setreg(reg, value, type) and getreg(reg, 1, 1) functions give you full programmatic control over registers, including their type (characterwise, linewise, o
:let @q = substitute(@q, "old", "new", "g")
Vim macros are stored as plain text in registers, which means you can inspect and modify them like any other string.
<C-@>
Pressing (Ctrl + @, which is the NUL character) in insert mode inserts the same text that was typed during the most recent insert session, then immediately retu
:let @q = @:
The : register always holds the last Ex command you ran.
\V
Vim's default search mode gives special meaning to characters like .