Tuesday, September 15, 2009

vim: enable line numbers in printout

If you want to print line numbers like I sometimes do, use printoptions to control this.
Do the following to enable line numbers in the printout:
:set printoptions=number:y


If you wanted to enable line numbers in vim (on the screen and not on the printout), see this post: vim 101: how to enable line numbers in vim

No comments: