How do I open a file in Netrw in a vertical split instead of the current window?
v (netrw)
When browsing files in Vim's built-in file manager (Netrw), pressing v on any file opens it in a vertical split to the right.
v (netrw)
When browsing files in Vim's built-in file manager (Netrw), pressing v on any file opens it in a vertical split to the right.
q?
Vim provides three command-line history windows accessible from normal mode: q: for Ex commands, q/ for forward searches, and q? for backward searches.
{count}H and {count}L
Most Vim users know H jumps to the first visible line, M to the middle, and L to the last.
:chistory
Every time you run :grep, :vimgrep, :make, or :cexpr, Vim creates a new quickfix list and pushes the previous one onto a history stack.
buffers-windows #buffers-windows #quickfix #navigation #ex-commands
]n
During a git merge, Vim can navigate directly between conflict markers (>>>>>>) using ]n and [n.
:set exrc secure
Adding set exrc to your vimrc tells Vim to read a .
:Telescope resume
The :Telescope resume command reopens the most recent Telescope picker, restoring the exact query string, filtered results, and cursor position from the last ti
:sfind {file}
:sfind (split-find) searches Vim's path setting for a file matching the given name and opens it in a new horizontal split, all in one command.
<C-w>t and <C-w>b
When managing multiple splits, t jumps to the top-left window and b jumps to the bottom-right window.
<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
zv
zv (view cursor) opens the minimum number of folds needed to make the current line visible — nothing more.
:set path+=** | :find
By adding to Vim's path option and using :find, you can search for any file recursively through your project tree with tab completion — no plugins required.
"#p
The # register holds the name of the alternate file — the file you were editing just before the current one.
50%
Prefixing the % command with a count jumps the cursor to that percentage through the file.
expand('%:p:h:t')
Vim's filename modifiers can be chained to transform paths step by step.
<C-w>g]
g] splits the window and then runs :tselect for the identifier under the cursor, displaying a numbered list of all matching tags so you can pick the exact defin
:set smoothscroll
The smoothscroll option makes scroll commands respect screen rows rather than buffer lines when wrap is enabled.
:set nostartofline
By default, many Vim movement commands — gg, G, Ctrl-d, Ctrl-u, Ctrl-f, Ctrl-b, and others — snap the cursor to the first non-blank character of the destina
:set foldcolumn=1
Setting foldcolumn to a non-zero value adds a narrow column on the left side of each window that visually represents the fold structure of your file.
:tabfind {name}
:tabfind is the tab-aware counterpart to :find.