Determine current file position in vi or vim

Contributor Icon Contributed by Rex  
Tag Icon Tagged: UNIX  


To quickly determine the current line number in a file, just press ^g (control-G) when in command mode (not insert mode). The filename, current line number, and total number of lines will be displayed.

 

No Comments -


No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment -