How do I reselect the last visual selection?
gv
The gv command reselects the exact same area that was last selected in visual mode.
gv
The gv command reselects the exact same area that was last selected in visual mode.
<C-w>+ and <C-w>-
The + and - commands increase or decrease the height of the current split window by one line.
<C-d>
The (Ctrl+d) command scrolls the window down by half a screen, moving both the viewport and the cursor.
<C-u>
The (Ctrl+u) command scrolls the window up by half a screen, moving the cursor along with it.
?pattern
The ?pattern command searches backward through the file for the given pattern, starting from the cursor position and wrapping around to the end of the file if n
$
The $ command moves the cursor to the last character of the current line.
^
The ^ command moves the cursor to the first non-blank character of the current line.
<C-w>T
The T (Ctrl+w then Shift+t) command moves the current split window into a new tab page.
buffers-windows #buffers-windows #windows #tabs #normal-mode
gd
The gd command jumps to the local definition of the word under the cursor.
O
The O (uppercase) command opens a new blank line above the current line and places you in insert mode, ready to type.
o
The o command opens a new line below the current line and places you in insert mode, ready to type.
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.
>>
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.
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.