website stat

vi syntax highlighting

Syntax highlighting not working on Ubuntu? That’s because it’s not enabled by default (?).

Edit/Create a file named .vimrc on your ~/ (home directory) and insert the following line

syntax enable

That’s it. Have fun with vim.

Update: typo. It’s .vimrc and not .vim


No Responses to “vi syntax highlighting”

Comments are closed.