How do I run a macro on every line in a specific line number range?
:{range} normal @{reg}
The :normal command lets you execute Normal mode keystrokes over a range of lines.
415 results for "n N"
:{range} normal @{reg}
The :normal command lets you execute Normal mode keystrokes over a range of lines.
:[range]normal @q
The :[range]normal @q command replays the macro in register q on every line within a given range.
<C-\><C-o>
In a Neovim terminal buffer, exits to normal mode permanently.
buffers-windows #terminal #buffers-windows #insert-mode #neovim #normal-mode
1000@q
Vim macros stop executing the moment any step in the macro causes an error — a failed search, a motion that cannot proceed, or a substitution with no matches.
vim.ui.open()
vim.
:set mouse=a
How it works The :set mouse=a command enables mouse support in all Vim modes.
:earlier {time} and :later {time}
Vim's :earlier and :later commands let you navigate the undo history by elapsed time rather than by edit count.
:sort
The :sort command sorts lines in the current buffer or a specified range alphabetically.
qaqqa{actions}@aq@a
A recursive macro is a macro that calls itself at the end of its recording.
qa{motions}@aq
A recursive macro is one that calls itself at the end of its own recording.
{count}|
The command moves the cursor to a specific screen column on the current line.
L
The L command moves the cursor to the last line visible in the current window.
:nnoremap key command
The :nnoremap command creates a non-recursive normal mode mapping.
gt and gT
The gt command moves to the next tab page and gT moves to the previous one.
:copen / :cnext / :cprev
The quickfix list is Vim's built-in mechanism for navigating a list of file locations — compiler errors, grep results, search matches, or any structured outpu
navigation #navigation #quickfix #ex-commands #productivity #workflow
ce
The ce command changes from the cursor position to the end of the current word.
/foo\_.*bar
Vim's default .
/pattern\_s\+next
Vim's regular expressions support multi-line matching through underscore-prefixed atoms.
:{range}command
Every Ex command in Vim can be preceded by a range that specifies which lines it should operate on.
command-line #command-line #ex-commands #ranges #editing #productivity
<C-o> and <C-i>
Vim maintains a jump list of positions you have visited.