VI/VIM: Enable syntax highlightning in vi

Hi,

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

ESC
: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

Michael

Advertisment to support michlstechblog.info

Leave a Reply

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

Time limit is exhausted. Please reload CAPTCHA.