How do I use Neovim 0.11's unified diagnostic jump API to navigate to the next or previous diagnostic?
vim.diagnostic.jump({count=1})
Neovim 0.
287 results for ":jumps"
vim.diagnostic.jump({count=1})
Neovim 0.
qama{edits}'aq
How it works When a macro needs to jump to different parts of the file and then return to a starting position, marks are the perfect tool.
O (visual block mode)
In visual block mode (), pressing O (uppercase) moves your cursor to the other end of the current line — letting you expand or contract the block's horizontal
O (in blockwise visual mode)
In blockwise Visual mode (), pressing O moves the cursor to the diagonally opposite corner of the rectangle.
]s and [s
How it works When spell checking is enabled in Vim with :set spell, misspelled words are highlighted.
z<CR> and zt
Both zt and z scroll the view so that the current line lands at the top of the screen, but they differ in one small but important way: z also moves the cursor t
:set jumpoptions+=view
By default, when you navigate the jump list with (older) or (newer), Neovim restores the cursor's line and column but does NOT restore where the window was scro
:CocInstall coc-tsserver
coc.
-
vim-vinegar is a lightweight plugin by Tim Pope that enhances Vim's built-in file browser (netrw) with a simpler, more intuitive workflow.
z<CR>
While zt scrolls the current line to the top of the screen, z does the same scroll but also moves the cursor to the first non-blank character of that line.
ea
The ea compound shortcut moves to the last character of the current word with e, then enters insert mode after the cursor with a.
]c / [c (gitsigns.nvim)
gitsigns.
zv
zv (view cursor) opens the minimum number of folds needed to make the current line visible — nothing more.
:set showmatch
How it works The :set showmatch option makes Vim briefly jump the cursor to the matching opening bracket when you type a closing bracket.
nnoremap <expr> j (v:count == 0 ? 'gj' : 'j')
The map modifier turns a mapping's right-hand side into a Vimscript expression that is evaluated at the time the key is pressed, with its return value used as t
".p
The ".
registers #registers #editing #insert-mode #normal-mode #productivity
mA to set, 'A to jump
Uppercase marks (A–Z) are global marks — they persist across files and Vim sessions.
g-
Vim's undo history is a tree, not a linear stack.
gd / gr / <leader>rn with nvim-lspconfig
The Language Server Protocol (LSP) brings IDE-level intelligence to Neovim — go-to-definition, find references, rename symbol, and more.
gf
The gf command ("go to file") opens the file whose path is under the cursor.
navigation #navigation #normal-mode #buffers #productivity #file-management