Skip to content

Instantly share code, notes, and snippets.

@jackbravo
Last active December 26, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jackbravo/7163461 to your computer and use it in GitHub Desktop.
Save jackbravo/7163461 to your computer and use it in GitHub Desktop.
My .vimrc
syntax on
set background=dark
set expandtab
set tabstop=2
set shiftwidth=2
set autoindent
set smartindent
set hidden
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 *.test set filetype=php
autocmd BufRead,BufNewFile *.inc set filetype=php
autocmd BufRead,BufNewFile *.profile set filetype=php
autocmd BufRead,BufNewFile *.view set filetype=php
augroup END
endif
filetype plugin indent on
set omnifunc=syntaxcomplete#Complete
let mapleader="¿" " map <leader> key for latin keyboards
let php_sql_query=1
let php_htmlInStrings=1
set colorcolumn=80
if version >= 703
set undofile
set undodir=$HOME/.vim/undo
set undolevels=1000
set undoreload=10000
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment