Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP syntax highlighting through SSH from Mac OS X

I connect to my server through SSH in Terminal.app to use Vim to edit PHP scripts.

I have install some plugins, including php.vim and another php.vim but it doesn't show me anything! So how can I enable highlighting?

like image 444
kirugan Avatar asked May 14 '26 19:05

kirugan


1 Answers

You don't need these plugins.

Just type :syntax on in normal mode or add syntax on to ~/.vimrc on the server.

Assuming, of course, that you run a reasonably recent version of Vim on a UNIX-y server.

like image 90
romainl Avatar answered May 17 '26 10:05

romainl



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!