Determine current file position in vi or vim
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.
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.