Jan 4, 2018

Forcing Syntax Coloring for files in Vim

If you are editing a file containing PHP script (for example) but the file doesn't have the extension .php, you can force the desired syntax coloring with :set syntax=php. similarly :set syntax=perl :set syntax=html. Alternatively if the extension causes an undesired coloring, switch off coloring with :set syntax=off

Post a Comment

Featured Post

Setup Chinese Input Method in Ubuntu 17.10 Artful

sudo apt install ibus-sunpinyin After either of those commands do not forget to restart the IBus daemon ibus restart You might need t...