VI/VIM: Enable syntax highlightning in vi


there are two options to enable syntax highlightning in vi/vim.

Just for your current editor session. Open your file

michael@debdev # vi ./src/examples/knxtool.c

and enable highlightning

:syntax on

Or persitent. Open .vimrc in your home folder

michael@debdev # vi ~/.vimrc

and add

syntax on

To show line numbers add

set number


Advertisment to support

Leave a Reply

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

Time limit is exhausted. Please reload CAPTCHA.