How do I quickly convert between snake_case, camelCase, and other naming conventions in Vim?
crs
The vim-abolish plugin by Tim Pope provides instant case coercion commands that convert the word under your cursor between common naming conventions.
1039 results for "i" a""
crs
The vim-abolish plugin by Tim Pope provides instant case coercion commands that convert the word under your cursor between common naming conventions.
R
Replace mode lets you type over existing text one character at a time, like the "Insert" key behavior in traditional editors.
:set exrc
Vim's exrc option tells Vim to look for a .
g_
g moves the cursor to the last non-blank character of the current line — skipping trailing spaces and tabs.
/\cpattern
How it works By default, Vim searches are case-sensitive: /Hello will not match hello or HELLO.
= (in visual mode)
After making a visual selection, pressing = applies Vim's auto-indent to every selected line at once.
:Files
The fzf.
:%!column -t
The column -t command formats whitespace-separated text into neatly aligned columns.
command-line #command-line #shell #formatting #text-manipulation
:'<,'>sort
The :'sort command sorts the currently selected lines in visual mode alphabetically.
'[ and ']
Vim automatically sets two marks whenever you yank, change, delete, or paste text: ` [ ` (backtick-bracket) marks the start of the affected region, and ] ` mark
<C-r><C-w>
When typing a command on the Vim command line, pressing inserts the word currently under the cursor.
<C-y> and <C-e>
In Insert mode, copies the character at the same column position from the line above the cursor, and copies the character from the line below.
:s/pattern/replace/flags
The substitute command supports several flags that modify its behavior.
:'<,'>!sort -t',' -k2 -n
Vim does not have a built-in multi-column sort, but you can leverage the external sort command to sort selected lines by any field.
editing #editing #sorting #ex-commands #external-commands #command-line
<C-w>H / <C-w>J / <C-w>K / <C-w>L
The H, J, K, and L commands move the current window to the far left, bottom, top, or right of the screen respectively, rearranging your entire split layout.
buffers-windows #windows #buffers #navigation #splits #layout
z=
When spell checking is enabled, the z= command opens a numbered list of spelling suggestions for the misspelled word under the cursor.
editing #editing #spell-check #normal-mode #productivity #prose
:resize +N / :resize -N
:resize adjusts the height of the current window by a relative or absolute amount.
/\%Vpattern
The \%V atom restricts a search pattern to only match inside the most recent visual selection.
gx
The gx command opens the URL, file path, or identifier under the cursor using the system's default handler.
navigation #navigation #netrw #workflow #browser #normal-mode
<C-y> / <C-e>
When typing in insert mode, you can pull individual characters from adjacent lines without leaving insert mode.