Sunday, December 03, 2006

Vi/Vim go to End/Beginning of line

If you want to go to the end of a large text file in your favourite vi/vim editor, you do this by pressing either (in Esc mode)

 G
or

:$
Similarly if you want to move to move to the beginning of the file, press :

gg
If you want to go to the 20-th line press :

20gg

No comments:

[Windows] Refreshing Environment variable for windows command prompt or Powershell

Sometimes, after installing a package like chocolatey ,or npm packages, it asks you to restart the cmd.exe or powershell window to reload t...