Skip to content

Instantly share code, notes, and snippets.

@afeijo
Last active February 9, 2018 12:25
Show Gist options
  • Save afeijo/6255145 to your computer and use it in GitHub Desktop.
Save afeijo/6255145 to your computer and use it in GitHub Desktop.
My VIM configuration
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 *.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
syntax on
" Mapping
:map <F2> :q <Enter>
:map <F3> :w <Enter>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment