Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-24-2010, 10:35 AM   #1
Registered: Sep 2006
Posts: 373

Rep: Reputation: 16
Configure php.vim in vimrc


1 - I've put php.vim in ~/vim/syntax directory, and now I would like to set ~/.vimrc to use php.vim when I open a php file. How do I do it?

2 - Where can I learn more on how to write vimrc?

Old 03-24-2010, 12:16 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,041
Blog Entries: 11

Rep: Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907
That's ~/.vim/syntax ... not ~/vim/syntax


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
hi i not getting my .vimrc file in this path ~/.vimrc dina3e Linux - Newbie 6 07-31-2012 04:36 PM
Editor comparison: vim VS vim-lite, Cleaning vim Ruler2112 *BSD 4 04-13-2009 04:26 PM
I can't configure vim isuck@linux Linux - Software 2 06-29-2008 12:00 PM
vim php with weird extensions dlublink Linux - Software 2 12-24-2005 09:35 AM
wher is my vimrc file and the .vim directory slac 10.0 rkrishna Slackware 3 04-11-2005 03:50 AM

All times are GMT -5. The time now is 10:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration