How do I move the cursor just after each search match instead of at match start?
/pattern/e+1<CR>
Most Vim searches place the cursor at the start of the match.
2125 results for "i{ a{"
/pattern/e+1<CR>
Most Vim searches place the cursor at the start of the match.
]m / [m / ]M / [M
When navigating large source files, ]m and [m let you jump directly to the start of the next or previous method.
<C-r><C-r>"
In Insert mode, plain {register} inserts register content but may reindent or auto-format depending on context.
registers #registers #insert-mode #editing #indentation #text
:Inspect
When customizing a colorscheme or debugging unexpected syntax colors, it's difficult to know which highlight group to override.
<C-g>U{motion}
By default, moving the cursor with arrow keys while in insert mode creates an undo break — meaning a subsequent u will undo only back to when you last moved,
:%s/\v^([^,]+),([^,]+),/\2,\1,/<CR>
When CSV-like data has two columns in the wrong order, manually fixing each line is slow and error-prone.
:set list
The :set list command makes invisible characters visible by displaying them as special symbols.
*
The command searches forward for the exact word under the cursor, jumping to the next occurrence.
set wildmode=lastused
With wildmode=lastused, :b cycles buffers in most-recently-used order instead of alphabetically.
:set matchpairs+=<:>
By default, the % command jumps between (), {}, and [] pairs.
config #navigation #config #matchpairs #editing #normal-mode
[[ and ]]
[[ and ]] navigate between section boundaries — typically the start of the previous or next top-level block.
:'[,']normal! =
When you need to run a command on exactly the text you just changed, yanked, or pasted, Vim's automatic marks are faster and safer than reselecting manually.
command-line #command-line #marks #indentation #ex-commands #normal-mode
<C-y>
The command scrolls the window up one line at a time while keeping the cursor position fixed.
"1p and .
When you paste from a numbered register with "1p, Vim's dot command (.
]m
The ]m command jumps to the start of the next method in Java-style code.
Plug 'tpope/vim-repeat'
vim-repeat by Tim Pope extends the .
gh (in netrw)
When browsing files with Vim's built-in netrw file explorer (:Explore or :Ex), hidden files starting with a dot (.
:set virtualedit=block,onemore
virtualedit controls whether the cursor can move to positions that do not yet contain text.
:vimgrepadd /pattern/j **/*<CR>
When you are investigating code, you often need to collect several related patterns before deciding what to edit.
:set timeoutlen=300 ttimeoutlen=10
If key mappings feel laggy, many users reduce timeoutlen and stop there.
config #config #mappings #terminal #performance #insert-mode