How do I wrap a word in quotes or brackets using vim-surround?
ysiw"
The ysiw" command wraps the word under the cursor in double quotes using the vim-surround plugin.
370 results for "insert mode"
ysiw"
The ysiw" command wraps the word under the cursor in double quotes using the vim-surround plugin.
:set formatoptions-=cro
By default, Vim continues the current comment leader when you press in insert mode or open a new line with o/O.
set complete=.,w,b,u,t
The complete option controls which sources Vim scans when you press or for generic keyword completion.
vim.lsp.completion.enable()
Neovim 0.
input({prompt})
The built-in input() function pauses execution, displays a prompt at the bottom of the screen, and returns whatever the user types before pressing Enter.
set completeopt+=popup
Adding popup to completeopt makes Vim display extra information — such as function signatures or documentation — for the currently highlighted completion it
ct{char}
The ct{char} command deletes everything from the cursor up to (but not including) the specified character and drops you into insert mode.
editing #editing #motions #normal-mode #text-objects #productivity
:nnoremap <expr> {key} {expression}
The argument to any map command (:nmap, :inoremap, etc.
config #config #macros #insert-mode #normal-mode #ex-commands
:set formatoptions
The formatoptions setting is a string of single-character flags that governs Vim's automatic text formatting: when lines wrap, whether comment syntax continues
ci"
The ci" command deletes everything inside the nearest pair of double quotes and drops you into insert mode, ready to type the replacement.
C (visual-block)
In visual block mode, pressing C (uppercase) deletes from the leftmost column of the selection to the end of every selected line, then drops you into insert mod
ce
The ce command changes from the cursor position to the end of the current word.
:<C-r>"
When typing an Ex command or search pattern, you often need to insert text you've already yanked or deleted.
<C-r><C-r>
In command-line mode, {reg} inserts a register's contents — but it processes certain sequences, potentially misinterpreting backslashes, pipe characters, or e
<C-y>,
The emmet-vim plugin brings the full power of Emmet (formerly Zen Coding) to Vim, letting you type a short CSS-like abbreviation and expand it into a complete H
:echo @%
Vim provides special read-only registers that hold the current and alternate filenames.
:set formatoptions+=cro
The formatoptions setting controls how Vim automatically formats text as you type — including comment continuation, auto-wrapping, and paragraph formatting.
cis
The cis command deletes the entire sentence under the cursor and drops you into insert mode, ready to type a replacement.
":p
The : register holds the most recently executed Ex command.
registers #registers #ex-commands #normal-mode #productivity
:let @a = expand('%:p')
Named registers are not only for yanked text.
registers #registers #command-line #filename-modifiers #editing