vim php color coding?
hi
im wondering how i can get vim to color code php files any suggestions? thanks |
My version of vim already does this... perhaps all you need to do is tell it to apply color-coding? Check out the help system in vim (type ":help syntax" once you're in vim)
|
ah
thanks i just typed in :syntax on one more question: how can i change the default color scheme? thanks |
I think you'd need to edit /usr/share/vim/<vim_version>/syntax/php.vim (or similar path)
The colors are listed at the end of the file. Also you can permanently set syntax on in /etc/vimrc or ~/.vimrc |
In addition to what mik suggested, you can also create a directory called ~/.vim and under that directory create directories for colors, syntax and plugins. Copy the files you want to change to the hierarchy you created under your home directory as these will be used instead of the global ones in /usr/share/vim, if they are present.
Also, settings are stored in ~/.vimrc and ~/.gvimrc (for the GUI version). I usually have all my general settings in ~/.vimrc and call it from my ~/.gvimrc so the settings are the same for both versions of vim. The things I define in my .gvimrc are only GUI-related. For reference, here is my ~/.gvimrc: Code:
" Get the .vimrc settings Code:
" Map Ctrl+N to (temporarily) disable search highlighting Håkan |
All times are GMT -5. The time now is 11:29 PM. |