How do I jump to the next LSP diagnostic error or warning in Neovim?
vim.diagnostic.goto_next()
Neovim's built-in vim.
2125 results for "i" a""
vim.diagnostic.goto_next()
Neovim's built-in vim.
:set statusline=%f\ %m%r%=%l/%L
The statusline option controls what information is shown in the status bar at the bottom of each window.
:cnext and :cprev
The quickfix list holds a set of file positions, typically from compiler errors, grep results, or other tools.
:cdo s/old/new/g
The :cdo command executes a command on every entry in the quickfix list.
vim-repeat
The vim-repeat plugin by Tim Pope extends Vim's built-in .
plugins #plugins #repeat #dot-command #workflow #normal-mode
"+p
The "+p command pastes the contents of the system clipboard into Vim.
"1p then u. to cycle through delete history
Vim silently maintains a rolling history of your last 9 deletions in numbered registers "1 through "9.
vim.lsp.buf.definition()
Neovim has a built-in LSP (Language Server Protocol) client that provides IDE-like features without plugins.
:only
The :only command closes every window in the current tab page except the one your cursor is in.
<C-w><C-w>
The (Ctrl+w Ctrl+w) command cycles the cursor to the next window in the current tab.
do (diffget) / dp (diffput)
How it works When you open two files in diff mode (using vim -d file1 file2 or :windo diffthis), Vim highlights the differences between them.
zb
The zb command redraws the screen with the current line at the bottom of the window.
:%s/old/new/g
The :%s/old/new/g command replaces all occurrences of old with new across every line in the file.
"%p
The % register in Vim always contains the name of the current file.
registers #registers #editing #insert-mode #productivity #filename
^ vs 0
Vim has two distinct motions for moving to the start of a line: 0 goes to column 1 (the absolute start), while ^ goes to the first non-blank character.
navigation #navigation #motions #line-navigation #indentation
"1p through "9p
Registers 1-9 contain the last 9 deletions or changes that are at least one line long.
:execute 'normal! ' . count . 'j'
The :execute command evaluates a string as an Ex command, enabling dynamic command construction.
:call matchadd('Search', 'pattern')
The matchadd() function lets you add persistent highlights to patterns without affecting the search register.
dd
The dd command deletes the entire current line, regardless of where the cursor is positioned on that line.
cw vs ciw
The cw and ciw commands both change a word, but they behave differently depending on cursor position.
editing #editing #text-objects #motions #normal-mode #productivity