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

Time limit is exhausted. Please reload CAPTCHA.

Original Theme by Schiy · Powered by WordPress