How do I set up auto-correct abbreviations in Vim to fix common typos?
Vim's abbreviation system automatically expands short text sequences as you type, making it perfect for auto-correcting typos, inserting boilerplate snippets, o
category:
config
tags:
#editing
#insert-mode
#config
#productivity
#auto-correct
How do I paste text from outside Vim without messing up indentation?
The :set paste command enables paste mode, which temporarily disables auto-indentation, smart tabs, and other insert-mode features that can mangle text pasted f
category:
config
tags:
#config
#editing
#insert-mode
How do I insert the same text on multiple lines at once?
Visual block mode combined with I lets you insert the same text at the beginning of multiple lines simultaneously.
category:
visual-mode
tags:
#visual-mode
#editing
#insert-mode
How do I open a new line above the cursor and start typing?
The O (uppercase) command opens a new blank line above the current line and places you in insert mode, ready to type.
category:
editing
tags:
#editing
#insert-mode
#normal-mode
How do I open a new line below the cursor and start typing?
The o command opens a new line below the current line and places you in insert mode, ready to type.
category:
editing
tags:
#editing
#insert-mode
#normal-mode
How do I insert text at the beginning of a line?
The I (uppercase) command moves the cursor to the first non-blank character of the current line and enters insert mode.
category:
editing
tags:
#editing
#insert-mode
#normal-mode
How do I start typing at the end of a line in Vim?
The A command moves the cursor to the end of the current line and enters insert mode.
category:
editing
tags:
#editing
#insert-mode
#normal-mode
How do I replace a word under the cursor?
The ciw command deletes the inner word under the cursor and drops you into insert mode so you can type a replacement.
category:
editing
tags:
#editing
#text-objects
#normal-mode
#insert-mode
How do I change the contents inside curly braces?
The ci{ command deletes everything inside the nearest pair of curly braces {} and places you in insert mode to type a replacement.
category:
editing
tags:
#editing
#text-objects
#normal-mode
#insert-mode
How do I change the text inside parentheses?
The ci( command deletes everything inside the nearest pair of parentheses and places you in insert mode, ready to type a replacement.
category:
editing
tags:
#editing
#text-objects
#normal-mode
#insert-mode
How do I change text from the cursor to the end of the line?
The C command deletes everything from the cursor position to the end of the line and places you in insert mode.
category:
editing
tags:
#editing
#normal-mode
#insert-mode