Showing posts with label number. Show all posts
Showing posts with label number. Show all posts

Tuesday, February 17, 2009

Going to Line Number

There are two ways for going to a line (say line number 149).
(i)
Esc :149
(ii) Press
149G

PS:
I would like to suggest that please enable the line number by pressing
Esc :set nu

in the Vim editor. Then you can use above trick efficiently and easily.

Wednesday, April 16, 2008

Deleted Contents in Numbered[1-9] Buffers

If you have deleted some content (line(s) or word(s)) accidentally,
you can retrieve using Paste command (p or P).

For example,

In order to retrieve second latest deleted content:
Press Esc
Press "2p