How do I browse through my previous quickfix lists?
:colder / :cnewer
Vim remembers up to 10 previous quickfix lists.
287 results for ":jumps"
:colder / :cnewer
Vim remembers up to 10 previous quickfix lists.
dgn
The gn motion is a versatile text object that selects the next occurrence of the last search pattern.
editing #editing #search #text-objects #normal-mode #motions
<C-t> and <C-d> in insert mode
When typing in insert mode, you can adjust the current line's indentation without leaving to normal mode.
<C-w>P
The preview window is a special auxiliary split — usually at the top — opened by commands like :ptag, :pedit, and omni-completion to display reference infor
:tjump /pattern
:tjump is a smarter variant of :tag.
z. / z-
Vim has scroll-positioning commands that come in two flavors: those that leave the cursor in the current column (zz, zt, zb) and those that also move the cursor
:set scroll=10
The scroll option determines how many lines (scroll up) and (scroll down) move the viewport.
:psearch /pattern/
When you need quick context from another file but do not want to disturb your current editing window, :psearch gives you a clean workflow.
buffers-windows #buffers #windows #preview-window #search #navigation
:filter /pattern/ {command}
:filter /pattern/ {command} runs any Ex command but suppresses every output line that does not match the pattern.
e
The e command moves the cursor to the last character of the current word.
42G
The 42G command jumps the cursor directly to line 42 in the current file.
mA and 'A
Vim has two tiers of marks.
<C-o> (insert mode)
Pressing while in insert mode lets you execute exactly one normal mode command and then automatically returns you to insert mode.
:let @/ = @a
Vim's search register (@/) holds the current search pattern — the same one used by n, N, *, and hlsearch highlighting.
:set foldopen
The foldopen option lets you specify exactly which cursor movements and commands will automatically open a closed fold.
vim.snippet.expand()
Neovim 0.
f{char}
The f{char} command moves the cursor forward to the next occurrence of {char} on the current line.
:set tags+=./tags;,tags
By default, Vim only looks for a tags file in the current directory.
<C-w>F
F opens the filename under the cursor in a new horizontal split window and jumps to the line number that follows the filename.
buffers-windows #navigation #buffers-windows #windows #editing
:set smoothscroll
The smoothscroll option makes scroll commands respect screen rows rather than buffer lines when wrap is enabled.