vim
Navigation, editing and command shortcuts to work efficiently in Vim.
Navigation
Move efficiently within a file using these commands.
Move to line start
Jumps to the first character of the current line.
Move to line end
Jumps to the last character of the current line.
Move to specific line
Jumps to a specified line number.
Move forward one word
Jumps to the beginning of the next word.
Move backward one word
Jumps to the beginning of the previous word.
Move to matching bracket
Jumps between matching parentheses, brackets, or braces.
Add indent
Increases the indentation level.
Remove indent
Decreases the indentation level.
Selecting Text
Commands for selecting, deselecting, and highlighting text.
Select characters
Starts visual mode to select text character by character.
Select lines
Selects entire lines instead of characters.
Select entire file
Selects all text in the file.
Clear selection
Exits visual mode and clears selection.
Editing
Modify text with essential Vim commands.
Enter insert mode
Enters insert mode to start typing.
Exit insert mode
Escapes the insert mode.
Replace character
Replaces the character under the cursor.
Change word
Deletes the word under the cursor and enters insert mode.
Delete character
Deletes the character under the cursor.
Delete word
Deletes the word under the cursor.
Copy text
Copies the selected text or the current line.
Cut text
Cuts the selected text or the current line.
Paste text
Pastes the last cut or copied text at the cursor position.
Copy to system clipboard
Copies selection or current line to system clipboard.
Cut to system clipboard
Cuts selection or current line to system clipboard.
Paste from system clipboard
Pastes text from the system clipboard into Vim.
Undo change
Reverts the last edit.
Redo change
Reapplies the last undone change.
Search and Replace
Find text and perform replacements efficiently.
Search forward
Finds the next occurrence of a word in the file.
Search backward
Finds the previous occurrence of a word in the file.
Repeat search
Moves to the next match of the last search.
Replace text globally
Replaces all occurrences of a word with another in the whole file.
Replace on current line
Replaces all occurrences of a word in the current line.
Exiting Vim
How to quit Vim safely.
Save and exit
Writes changes to file and quits.
Quit without saving
Exits Vim without saving changes.
Save without exiting
Saves the file but stays in Vim.
Windows and Tabs
Manage multiple files and workspaces.
Open new tab
Opens a new tab in Vim.
Switch tabs
Moves to the next or previous tab.
Split horizontal
Splits the window into two horizontal panes.
Split vertical
Splits the window into two vertical panes.
Switch windows
Moves the cursor between split windows.
Miscellaneous
Other useful Vim configuration commands.
Show line numbers
Displays line numbers in the editor.
Hide line numbers
Hides line numbers in the editor.
Enable syntax highlighting
Turns on syntax highlighting.
Disable syntax highlighting
Turns off syntax highlighting.