How do I open a terminal inside Vim?
:terminal
The :terminal command opens an interactive terminal emulator directly inside a Vim window.
:terminal
The :terminal command opens an interactive terminal emulator directly inside a Vim window.
P
The P (uppercase) command pastes the contents of the default register before the cursor position.
p
The p command pastes (puts) the contents of the default register after the cursor.
"+p
The "+p command pastes the contents of the system clipboard into Vim.
:bprev
The :bprev (or :bp for short) command switches to the previous buffer in Vim's buffer list.
>>
The >> command shifts the current line one shiftwidth to the right, adding indentation.
I
The I (uppercase) command moves the cursor to the first non-blank character of the current line and enters insert mode.
:r !command
The :r !command command executes a shell command and inserts its output directly into the current buffer below the cursor line.
J
The J command joins the current line with the line below it, replacing the newline with a space.
e
The e command moves the cursor to the last character of the current word.
`.
The ` .
w
The w command moves the cursor forward to the beginning of the next word.
<C-o>
The (Ctrl+o) command jumps the cursor backward through the jump list, returning you to previous cursor positions.
b
The b command moves the cursor backward to the beginning of the previous word.
H
The H command moves the cursor to the first line of the currently visible screen (the "High" position).
:ls
The :ls command displays a list of all open buffers in Vim, showing their buffer number, status indicators, file name, and the line the cursor was last on.
guiw
The guiw command converts the entire word under the cursor to lowercase.
{ and }
The { and } commands move the cursor by paragraph — jumping to the previous or next blank line.
yyp
The yyp command duplicates the current line by yanking it and immediately pasting it below.
"ap, edit, "ayy
Vim stores macros in registers, which means you can paste a macro's contents into a buffer, edit it as regular text, and yank it back into the register.