How do you use a macro to convert plain URLs to Markdown links?
qayiWi[<Esc>ea](<Esc>pa)<Esc>q
Record a macro that yanks the URL, wraps the text before it in brackets, and appends the URL in parentheses for Markdown link format.
qayiWi[<Esc>ea](<Esc>pa)<Esc>q
Record a macro that yanks the URL, wraps the text before it in brackets, and appends the URL in parentheses for Markdown link format.
qaf'r"q
Record a macro that finds the next single quote with f' and replaces it with a double quote using r".
qaf r_q
Record a macro that finds the next space with f and replaces it with an underscore using r_.
qa:s/^ / /\njq
Record a macro that substitutes leading 4-space indentation with 2 spaces on each line.
qa0d2Wjq
Record a macro that goes to the start of the line, deletes the first two words (timestamp fields), then moves down.
qaI"<Esc>A",<Esc>jq
Record a macro that wraps each line in quotes and adds a trailing comma.
qa*Ncgn<C-r>=newName\n<Esc>q
Record a macro using * to search for the word under cursor, cgn to change the next match, type the new name.
qa/[A-Z]\ni_<Esc>l~q
Record a macro that finds the next uppercase letter, inserts an underscore before it, and lowercases it.
qa0f=40i <Esc>040lDjq
Record a macro that inserts spaces before = to pad to column 40, then trims excess.
qaA,<Esc>jq
Record a macro that moves to end of line with A, types a comma, escapes to normal mode, and moves down.
qA...q
Use uppercase register letter qA to append to macro a instead of overwriting.
qaI1. <Esc>jq
Start at line 1, record a macro that inserts 1.
vi<
The vi).
~ (in visual mode)
In visual mode, pressing ~ toggles the case of every character in the selection.
zf (in visual mode)
In visual mode, pressing zf creates a manual fold from the selected lines.
:'<,'>m'>+1
The :m command with the visual range moves selected lines.
s{char}{char} (vim-sneak)
vim-sneak provides a motion that lets you jump to any location specified by two characters.
vim-startify plugin
vim-startify provides a configurable start screen when you open Vim without a file.
vim-which-key plugin
vim-which-key displays a popup showing available key bindings as you type a prefix key.
:UndotreeToggle
The undotree plugin provides a visual tree representation of Vim's undo history.