Linux

How to turn on PHP syntax highlighting for VIM on Ubuntu Linux

Ever tried editing a PHP file in VIM without syntax highlighting on? Not fun.

How to turn on PHP syntax highlighting

  1. First, ensure that you have the most recent non-stripped down version of VIM, as Ubuntu currently ships with certain VIM features missing. Open the terminal and run: sudo aptitude install vim-full.
  2. Create or edit ~/.vimrc (open the terminal and run vim ~/.vimrc)and add, or uncomment, the line syntax on. Save your file.

My .vimrc file (ignore line numbers)

And, for you to copy:

set title set number set background=dark set showcmd syntax on

The final syntax highlighted product:

Pretty nice, huh? And the .vimrc file is portable, meaning you can copy it to the home directory (~/) of your account on other machines. Happy coding.

How to install Filezilla FTP client on Ubuntu Linux

  1. Open up a terminal and run sudo aptitude install filezilla.
  2. Enter password.
  3. You are done.

You can find the application at Applications > Internet > Filezilla. Happy file transferring.

Powered by Drupal, an open source content management system