How do I jump directly to a specific tab page by its number in Vim?
{count}gt
Prefixing gt (go to next tab) with a count jumps directly to the tab page at that position.
buffers-windows #tabs #buffers-windows #navigation #normal-mode
415 results for "n N"
{count}gt
Prefixing gt (go to next tab) with a count jumps directly to the tab page at that position.
buffers-windows #tabs #buffers-windows #navigation #normal-mode
:keeppattern %s/old/new/g
When you run a :s or :%s substitute command, Vim updates the search register (@/) with the substitution pattern.
command-line #ex-commands #search #editing #registers #substitute
?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
{count}go
The go command moves the cursor to a specific byte offset from the start of the buffer.
:s/pattern//gn
The :s///gn command counts how many times a pattern appears in the file without actually replacing anything.
command-line #search #ex-commands #substitution #command-line
:set shortmess-=S
The shortmess option controls which messages are shortened.
{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.
cgn...{text}<Esc>.
The cgn + .
:set completeopt=menu,menuone,noselect
The completeopt option controls the behavior of the completion popup menu.
:Telescope live_grep
Telescope's livegrep picker provides real-time regex search across your entire project as you type.
:oldfiles
:oldfiles displays a numbered list of every file Vim has recorded in its viminfo (or shada in Neovim) file.
qq;.q then @q or @@
The dot command (.
:set complete+=kspell
Vim's built-in completion ( / ) sources matches from buffers, included files, and tags by default.
v/pattern<CR>
Starting a search while in visual mode extends the selection to the search match.
:colder
Vim maintains a history stack of up to 10 quickfix lists.
buffers-windows #buffers-windows #navigation #ex-commands #search
:Telescope find_files
Telescope is a highly extensible fuzzy finder for Neovim.
Harpoon: mark files and jump with <leader>1-4
Harpoon by ThePrimeagen provides instant access to a curated list of files you're actively working on.
/\%d{decimal}
Vim's regex engine supports special atoms that match characters by their numeric value rather than their glyph.
vim.lsp.buf.definition()
Neovim has a built-in LSP (Language Server Protocol) client that provides IDE-like features without plugins.
:set breakindentopt=shift:2
When breakindent is enabled, wrapped continuation lines are indented to match the start of their logical line.