Home ›
Where to save configuration settings for MacVimWhere to save configuration settings for MacVim
Submitted by Benjamin Melançon on January 25, 2009 - 3:40pm
UPDATE: I'm off the Mac for development and onto Ubuntu so now see at the link for the latest version of my .vimrc file for PHP.
MacVim configuration should be put in a file called "gvimrc" in your user directory:
~/.gvimrc
Here are some configurations used for Drupal:
set expandtab
set tabstop=2
set shiftwidth=2
set autoindent
set smartindent
if has("autocmd")
" Drupal *.module and *.install files.
augroup module
autocmd BufRead,BufNewFile *.module set filetype=php
autocmd BufRead,BufNewFile *.install set filetype=php
autocmd BufRead,BufNewFile *.inc set filetype=php
augroup END
endif
syntax on
Taken directly from the Drupal handbook page on configuring Vim.
Resolution
Searched words:
macvim set syntax
macvim set styling defaults
Comments
Post new comment