How do I quickly change an entire sentence in Vim?
cis
The cis command deletes the entire sentence under the cursor and drops you into insert mode, ready to type a replacement.
2125 results for "i[ a["
cis
The cis command deletes the entire sentence under the cursor and drops you into insert mode, ready to type a replacement.
:Lazy profile
When Neovim starts slowly, finding the culprit plugin is tedious without tooling.
:set debug=msg
When troubleshooting mappings or scripts that use :silent!, errors disappear without a trace.
:%s/\(\w\+\) \(\w\+\)/\2 \1/g
Vim's substitute command supports captured groups (back-references) using \( and \), allowing you to capture parts of a match and rearrange them in the replacem
:setglobal
Vim maintains two values for most options: a global default that applies to new windows and buffers, and a local copy that can be overridden per-buffer or per-w
:echo synIDattr(synID(line('.'),col('.'),1),'name')
When customizing a colorscheme or debugging unexpected colors, you need to know exactly which highlight group is coloring the text under your cursor.
"0p
Register 0 (the yank register) always contains the text from your most recent yank command — and unlike the unnamed register, it is never overwritten by delet
set completeopt+=fuzzy
Neovim 0.
:set diffopt+=algorithm:histogram,indent-heuristic
Default diff behavior can produce noisy hunks when code is moved or indentation changes significantly.
:set splitkeep=topline
When you open, close, or resize splits in long files, the visible window region can shift in ways that break your reading flow.
``
The double backtick jumps to the exact position before the last jump.
:autocmd FileType python setlocal keywordprg=pydoc3
The K command looks up the word under the cursor using the program defined by keywordprg (default: man).
"/ register
The / register contains the most recent search pattern.
<C-n>
The vim-visual-multi plugin (formerly vim-multiple-cursors) brings VS Code-style multiple cursor editing to Vim.
plugins #plugins #visual-multi #editing #multiple-cursors #refactoring
!{motion}command
The ! operator in normal mode pipes text through an external shell command and replaces it with the output.
]q
The vim-unimpaired plugin (by Tim Pope) provides a consistent [x / ]x mnemonic for navigating any list-like structure in Vim.
=ip
The =ip command combines Vim's auto-indent operator (=) with the inner paragraph text object (ip) to re-indent every line in the current paragraph in a single k
:set sessionoptions+=globals,localoptions
If you rely on sessions for context switching, default :mksession can feel incomplete because some state does not come back.
1z=
The z= command opens an interactive numbered menu of spelling corrections for the word under the cursor, requiring you to type a number and press Enter.
:'<,'>
Vim automatically sets two special marks whenever you make a visual selection: ' (end).