Last active
February 9, 2018 12:25
-
-
Save afeijo/6255145 to your computer and use it in GitHub Desktop.
My VIM configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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