Quick Tip – vi Cursor Position Information

I came across a great tip today for vi users which I wanted to share.

When using vi I sometimes need information about my cursor’s position in a document I’m editing. A quick way to do this is to type the command g and then ctrl-g. This provides position information relating to the column, line, word and byte position of the cursor in the file.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s