Skip to content

Instantly share code, notes, and snippets.

@aniversarioperu
Created August 18, 2013 09:36
Show Gist options
  • Save aniversarioperu/6260772 to your computer and use it in GitHub Desktop.
Save aniversarioperu/6260772 to your computer and use it in GitHub Desktop.
add 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