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.
2125 results for "i{ a{"
s{char}{char} (vim-sneak)
vim-sneak provides a motion that lets you jump to any location specified by two characters.
]] / [[
The ]] and [[ commands let you jump forward and backward between section boundaries, which in most programming languages correspond to function or method defini
navigation #navigation #motions #normal-mode #code #functions
:CocInstall coc-tsserver
coc.
<C-x><C-e> and <C-x><C-y>
While in insert mode, scrolls the window up one line and scrolls it down one line — all without leaving insert mode.
:wall
When working across multiple files, you often have unsaved changes in several buffers.
gP
The gP command works like P (paste before the cursor) but leaves your cursor after the pasted text rather than at its beginning.
:windo diffthis
The :windo diffthis command activates Vim's built-in diff mode across all visible windows, highlighting the differences between them.
}
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.
:set jumpoptions=stack,view
By default, jump navigation can feel lossy in long files: you jump back, but folds, topline, and viewport context do not always match what you were looking at b
gcc / gc{motion}
The vim-commentary plugin by Tim Pope provides a simple, operator-based way to comment and uncomment code.
:echo searchcount({'recompute': 1})
Vim can show match counts for your last search, but in large files or after big edits the cached values may lag.
search #search #command-line #automation #statusline #diagnostics
]c / [c (gitsigns.nvim)
gitsigns.
:set wrap! or :set nowrap
How it works By default, Vim wraps long lines that extend past the window width, displaying them across multiple screen lines.
:%s/pattern/\=expression/g
Vim's substitute command supports expression replacements using \= in the replacement string.
/foo\|bar
How it works The \ operator in Vim's search pattern works like a logical OR, letting you match any one of several alternatives.
:Telescope resume
The :Telescope resume command reopens the most recent Telescope picker, restoring the exact query string, filtered results, and cursor position from the last ti
y (in visual mode)
In visual mode, pressing y yanks (copies) the selected text into the default register.
:noh
The :noh (short for :nohlsearch) command clears the highlighting from the last search pattern.
gj / gk
When a long line wraps across multiple screen rows, the regular j and k motions skip the entire logical line.