ctrl + f: move down one page
ctrl + b: move up one page
ctrl + u: move up half page
ctrl + d: move down half page
G: move cursor to the bottom of the file
gg: move cursor to the top of the file
H: capital H, to move to the top of the screen
L: capital L, to move to the bottom of the screen
w: move to the next word
b: move to the previous word
ctrl + r: redo
Deleting to the beginning of line when line starts with whitespace characters:
:b#to go back to the last buffer.
💡 If you just opened a file, then it will bring you just back to the directory browsing.
- Return to the explorer using
- Open the explorer using
- Jump back to the previous location using
ctrl + 0.
d0: Delete from the cursor position to the line start
c0: Delete from the cursor position to the line start and enter the insert mode
Run all the commands below to turn off the auto indentation:
filetype indent off
filetype plugin indent off
💡 To solve the identation problem when pasting code, you can use
set paste, paste whatever you want to and then eventually use
:Ex are all usefull commands for ex(ploring) the files on your system, where S/V/T stands for Split/Vertical/Tab.