What is the location list and how does it differ from the quickfix list?
:lopen / :lnext / :lprev
The location list is a per-window variant of the quickfix list.
buffers-windows #navigation #quickfix #ex-commands #windows #productivity
:lopen / :lnext / :lprev
The location list is a per-window variant of the quickfix list.
buffers-windows #navigation #quickfix #ex-commands #windows #productivity
` vs '
Vim offers two ways to jump to a mark, and the difference is crucial: the backtick (` `) jumps to the exact line and column where the mark was set, while the si
<C-w><C-w>
The (Ctrl+w Ctrl+w) command cycles the cursor to the next window in the current tab.
/pattern
The /pattern command searches forward through the file for the given pattern.
#
The # command searches backward for the exact word under the cursor, jumping to the previous occurrence.
*
The command searches forward for the exact word under the cursor, jumping to the next occurrence.
ma and 'a
The ma command sets a mark named a at the current cursor position.
:set relativenumber
The :set relativenumber command displays line numbers relative to the cursor position instead of absolute line numbers.
<C-d>
The (Ctrl+d) command scrolls the window down by half a screen, moving both the viewport and the cursor.
<C-u>
The (Ctrl+u) command scrolls the window up by half a screen, moving the cursor along with it.
?pattern
The ?pattern command searches backward through the file for the given pattern, starting from the cursor position and wrapping around to the end of the file if n
$
The $ command moves the cursor to the last character of the current line.
^
The ^ command moves the cursor to the first non-blank character of the current line.
gd
The gd command jumps to the local definition of the word under the cursor.
:bnext
The :bnext (or :bn for short) command switches to the next buffer in Vim's buffer list.
:tabnew filename
The :tabnew filename command opens a file in a new tab page in Vim.
buffers-windows #buffers-windows #tabs #ex-commands #navigation
:bprev
The :bprev (or :bp for short) command switches to the previous buffer in Vim's buffer list.
e
The e command moves the cursor to the last character of the current word.
`.
The ` .
w
The w command moves the cursor forward to the beginning of the next word.