How do I navigate between diagnostics with filtering by severity in Neovim 0.10+?
vim.diagnostic.jump()
Neovim 0.
vim.diagnostic.jump()
Neovim 0.
g<C-g> (visual mode)
In visual mode, pressing g reports detailed statistics for the selected text only — word count, character count, and byte count.
z. and z<CR> and z-
Vim has two parallel sets of scroll commands: the well-known zz, zt, zb which reposition the view without moving the cursor, and the lesser-known z.
:tjump /pattern
:tjump is a smarter variant of :tag.
]s
When spell checking is enabled with :set spell, Vim underlines misspelled words in the buffer.
:set scroll=10
The scroll option determines how many lines (scroll up) and (scroll down) move the viewport.
:mkview 2 and :loadview 2
Vim supports up to 9 numbered view slots per file.
buffers-windows #folding #buffers-windows #navigation #config
/pattern/e+2
Vim's search command supports an offset suffix that controls where the cursor lands after a match.
:checkpath!
:checkpath! recursively walks through every file reachable via Vim's include path and displays the full include tree.
\%'m
Vim's \%'m regex atom matches the exact position of mark m in a search pattern.
expand('<cfile>')
The expand('') function returns the filename that Vim sees under the cursor — the same file that gf would open.
command-line #command-line #ex-commands #navigation #editing #motions
<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
g+
Vim's undo history is a tree, not a linear stack.
d'a
Named marks are not just jump destinations — they serve as motion targets for any operator.
navigation #navigation #marks #editing #motions #normal-mode
:e %:h
The command :e %:h opens netrw (Vim's built-in file browser) in the directory that contains the current file.
command-line #command-line #navigation #buffers #netrw #editing
mf mt mc
Netrw, Vim's built-in file browser, supports a full marking system that lets you select multiple files and then perform bulk copy, move, or delete operations on
[* and ]*
The [ and ] motions (also written as [/ and ]/) let you jump directly to the opening / or closing / of a C-style block comment.
zh and zl
When wrap is disabled, long lines extend off-screen.
`"
The " mark is an automatic mark Vim sets whenever you leave a buffer — switching to another file, hiding the buffer, or quitting Vim (with viminfo/shada enabl
require('telescope.builtin').grep_string()
Telescope's grepstring() function performs a project-wide search for the exact word currently under the cursor, displaying live-previewed results in an interact