Skip to content

Instantly share code, notes, and snippets.

@carlosp420
Created August 30, 2013 10:02
Show Gist options
  • Save carlosp420/6388296 to your computer and use it in GitHub Desktop.
Save carlosp420/6388296 to your computer and use it in GitHub Desktop.
insert line numbers to text in Vim. Taken from http://stackoverflow.com/questions/252766/add-line-numbers-in-vim
:%s/^/\=line('.')/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment