How do I quickly jump to any location with two characters?
s{char}{char} (vim-sneak)
vim-sneak provides a motion that lets you jump to any location specified by two characters.
2277 results for "@a"
s{char}{char} (vim-sneak)
vim-sneak provides a motion that lets you jump to any location specified by two characters.
=G
The =G command applies Vim's auto-indent operator (=) from the current line to the last line of the file (G).
:lua vim.lsp.inlay_hint.enable()
Neovim 0.
`0
Vim automatically saves your cursor position when you exit, storing it as the 0 mark in the viminfo file (or shada file in Neovim).
}
The } motion moves the cursor forward to the next blank line, effectively jumping to the next paragraph.
ce
The ce command changes from the cursor position to the end of the current word.
<C-o>zz
When you are typing in insert mode and the cursor drifts near the top or bottom of the screen, you normally have to press , then zz, then i or a to continue edi
:colder / :cnewer
Vim remembers up to 10 previous quickfix lists.
<Up>
In Vim's command line, and navigate history in prefix-filtered mode — they only cycle through past commands that begin with whatever you have already typed.
``
The double backtick jumps to the exact position before the last jump.
y (in visual mode)
In visual mode, pressing y yanks (copies) the selected text into the default register.
\v
Vim's default regex mode ("magic") requires backslashes before many special characters: \(, \ , \+, \{.
:earlier {time}
Vim's :earlier and :later commands let you travel through undo history using real-world time intervals instead of individual change counts.
<C-w>hjkl
Use followed by a direction key: h (left), j (down), k (up), l (right) to move focus between split windows.
require('which-key').setup()
which-key.
:set synmaxcol=200
The synmaxcol option tells Vim the maximum column up to which it will apply syntax highlighting on each line.
:LspInfo
The :LspInfo command, provided by the nvim-lspconfig plugin, opens a diagnostic floating window showing every active LSP client and its configuration for the cu
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
"_dd
Use the black hole register " before a delete command.
"ayy"byy
Yank the line twice into different registers.