How do I insert a Unicode character by its code point?
<C-v>u{code} in insert mode
In insert mode, u followed by a 4-digit hex code inserts the Unicode character at that code point.
<C-v>u{code} in insert mode
In insert mode, u followed by a 4-digit hex code inserts the Unicode character at that code point.
]p
The ]p command pastes text and adjusts its indentation to match the current line.
ciw + new text + Esc, then n.
The ciw command followed by new text, combined with and .
ci`
The ` ci ` command changes the text inside backtick delimiters.
:set updatetime=250
The updatetime option controls how long Vim waits after you stop typing before triggering certain events (like swap file writes and CursorHold autocommands).
V select then :norm A text
Selecting lines and running :norm A text appends the same text to the end of every selected line.
:set termguicolors
The termguicolors option enables 24-bit RGB color support, allowing color schemes to use millions of colors instead of the terminal's 256-color palette.
<C-r>=system('cmd')
In command-line mode, =system('command') evaluates the shell command and inserts its output into the command line.
:s/pattern/replace/flags
The substitute command supports several flags that modify its behavior.
:set belloff=all
The belloff=all option disables all error bells and visual bells in Vim.
:bwipeout
The :bwipeout command (:bw) completely removes a buffer from Vim's memory, including its marks, options, and variables.
<C-w>H
The H command moves the current window to the far left, making it a full-height vertical split.
:enew
The :enew command creates a new unnamed empty buffer in the current window.
<C-w>p
The p command jumps to the previously active window (the last window you were in).
[q, ]q, [b, ]b (vim-unimpaired)
vim-unimpaired by Tim Pope provides consistent bracket mappings for navigating paired items like quickfix entries, buffers, and more.
Create plugin/myplugin.vim
A basic Vim plugin is just a .
cs"' (change), ds" (delete), ys iw" (add)
The vim-surround plugin by Tim Pope adds commands for working with surrounding characters like quotes, brackets, and tags.
:TestNearest (vim-test)
vim-test provides commands to run tests from within Vim.
Plug 'sheerun/vim-polyglot'
vim-polyglot is a collection of language packs for Vim.
Plug 'tpope/vim-repeat'
vim-repeat by Tim Pope extends the .