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:

Interview Question Preperation : Find longest subarray whose sum is equal to K

Software Engineering Practice interview question Given a array of N elements. Find the length of Longest Subarray whose sum is equal to give...