SNS
Table of contents
VI
- = Text Editor
Shortcuts!
- Start of line vervus EOL / End of line :
$org_: Jumps to last char of the current line$: Jumps to TRUE ENDING of current lineg_: Jumps to last non-blank of current line
0or^: Jumps to first char of the current line0: Jumps to TRUE BEGINNING of current line^: Jumps to first non-blank of current line
- TL;DR β>
0<^<g_<$
- Under insert mode, if you wish to add to the last line:
- Insert Mode β>
Ctrl + oβ>$ - Note:
Ctrl+oallows user to temp switch over to normal mode for one single command only
- Insert Mode β>
Top of the file vs the end of the file
- First line of file (you have 3 options)
gg= first line onlygg0= first line + FOL !!!:11Gwith explicit number 1
- Last line in file (you have 2 options)
:$last line onlyGlast line only- These 2 are equivalent:
:$=G
- These 2 are equivalent:
G$last line + EOL !! (Best optionGG$)
- TL:DR β>
gg0<gg<G<G$
- First line of file (you have 3 options)