How do I see all search matches highlighted as I type the pattern?
:set incsearch hlsearch
The combination of incsearch and hlsearch gives you live, interactive search highlighting.
414 results for "G"
:set incsearch hlsearch
The combination of incsearch and hlsearch gives you live, interactive search highlighting.
:'<,'>norm {commands}
The :normal (or :norm) command lets you execute normal mode keystrokes from the command line.
command-line #editing #ex-commands #normal-mode #productivity #ranges
<C-v>jj$A text<Esc>
Visual block mode combined with $A lets you append text to the end of multiple lines simultaneously, even when those lines have different lengths.
visual-mode #editing #visual-mode #block-mode #productivity #insert-mode
<C-o>
The (Ctrl+o) command jumps the cursor backward through the jump list, returning you to previous cursor positions.
:DB sqlite:mydb.sqlite SELECT * FROM users
vim-dadbod by Tim Pope is a plugin that lets you interact with databases directly from Vim.
:tabnew filename
The :tabnew filename command opens a file in a new tab page in Vim.
buffers-windows #buffers-windows #tabs #ex-commands #navigation
:{line}put {register}
How it works The :put Ex command pastes the contents of a register after a specified line.
/\<word\>
The \ atoms create word boundaries in a search pattern, matching only complete words and not substrings within larger words.
:'<,'>normal @a
The :'normal @a command executes the macro stored in register a on every line within the current visual selection.
U (in visual mode)
In visual mode, pressing U converts all selected text to uppercase.
:!command
The :!command syntax lets you execute any shell command directly from within Vim without leaving the editor.
:reg a
The :reg a command shows the contents of register a, which reveals the keystrokes stored in the macro.
vim-which-key plugin
vim-which-key displays a popup showing available key bindings as you type a prefix key.
`.
The ` .
=
Pressing = in visual mode auto-indents the selected lines according to Vim's built-in indentation rules.
visual-mode #editing #visual-mode #indentation #formatting #productivity
Plug 'sheerun/vim-polyglot'
vim-polyglot is a collection of language packs for Vim.
:set shortmess-=S
The shortmess option controls which messages are shortened.
:command Name action
The :command command defines a new user Ex command.
:vimgrep /pattern/ **/*.ext | copen
The :vimgrep command searches for a regex pattern across multiple files and populates the quickfix list with every match.
search #search #quickfix #ex-commands #navigation #productivity #grep
{count}|
The command moves the cursor to a specific screen column on the current line.