How to show line number and set tab size in vi or vim

To show line number:

:set number

To stop displaying the line number:

:set nonumber

To set tab size to 4:

:set ts=4

Related

This entry was posted in Linux, Windows and tagged , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>