The latest php.vim as of time of writting is from 2008 and is two years newer than the php.vim that comes with the latest vim package for Debian Testing/Unstable.
To install the newer version of php.vim on my Debian desktop I issued the following commands:
1. Download newest version of vim.php from vim.org
noah:~# cd /usr/share/vim/vim72/
noah:/usr/share/vim/vim72 # mv /usr/share/vim/vim72/syntax/vim.php /usr/share/vim/vim72/syntax/vim.php.orig
noah:/usr/share/vim/vim72 # lynx http://www.vim.org/scripts/download_script.php?src_id=8651
# Now press D and Choose save to Disk in Lynx
noah:/usr/share/vim/vim72 # tar -zxvf php.tar.gz
-rw-r--r-- peter/peter 278277 2008-05-07 00:44 syntax/php.vim
This will have installed newest php.vim syntax highlighting rules. Now we will also need to copy a nicely configured .vimrc ready to be used for PHP highlighting, along with the PHP highlighting the .vimrc we are about to install is well configured for all kind of vim edits, so you will certainly benefit out if it if you’re a vim user just like me.
2. Download a properly nicely configured .vimrc for all kind of syntax highlighting including php editing and many other vim capabilities enabled
noah:~/usr/share/vim/vim72 # cd ~
noah:~# wget https://www.pc-freak.net/files/.vimrc
You might also want to set the same .vimrc for all other users except root, I’ll leave this up to you.
If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
Hey long time now see, thanks for dropping back again! 🙂
More helpful Articles
- Howto install XCache Debian on GNU / Linux to accelerate Apache Webserver – XCache Best alternative to outdated PHP cacher EAccelerator
- Howto Upgrade IBM Spectrum Protect Backup Client TSM 7.X to 8.1.8, Update Tivoli 8.1.8 to 8.1.11 on CentOS and Redhat Linux
- How to add support for DJVU file format on M$ Windows, Mac, GNU / Linux and FreeBSD
- Switching from PasswordSafe to Keepass database, migrating .psafe3 to .kdbx format howto
- Merry Christmas from Pomorie Monastery and a small monastic fire that ended well
- Install TeamViewer on latest Debian, Ubuntu, Fedora, CentOS Linux quick how to
- Increase Internet visibility in Blog and RSS Directories through XML-RPC Pings technology in nanoblogger
- How to check Java JAR JDBC / ODBC version on Linux / Unix and Windows server
- How to enable AUTO fsck (ext3, ext4, reiserfs, LVM filesystems) checking on Linux boot through /etc/fstab
- Keukenhof (The Kitchen Garden) Holland – The Largest Flower garden in the World
- Create ASCII Art Text banners in GNU / Linux console and terminal with figlet and toilet
- How to change hostname in Postfix SMTP on Debian Linux
- Create Haproxy Loadbalancer Access Control Lists and forward incoming frontend traffics based on simple logic
- List and get rid of obsolete program core dump files and completely disable core files on FreeBSD
Download PDF
Tags: How to configure .vimrc for PHP syntax highlighting - Download nicely configured .vimrc that can improve your daily vim text edit experience
This entry was posted on Thursday, August 19th, 2010 at 5:45 pm and is filed under Everyday Life, Linux, Programming. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Mozilla/5.0 (X11; U; Linux i686; it-IT; rv:1.9.0.2) Gecko/2008092313 Ubuntu/9.25 (jaunty) Firefox/3.8
What’s up! Just wanted to say good site. Continue with the good work you’re doing!
View CommentView Comment