set nocompatible
set backspace=indent,eol,start
set encoding=utf-8
set fileencodings=utf-8,euc-jp,sjis,iso-2022-jp
set number
set tabstop=4
set autoindent
set showmode
set showmatch
set ruler
syntax on
autocmd BufRead,BufNewFile /etc/php-fpm.conf set syntax=dosini
autocmd BufRead,BufNewFile /etc/php-fpm.d/*.conf set syntax=dosini
autocmd BufRead,BufNewFile /etc/nginx/*.conf set syntax=conf
autocmd BufRead,BufNewFile /etc/nginx/conf.d/*.conf set syntax=conf
autocmd BufRead,BufNewFile /etc/hhvm/*.hdf set syntax=conf
autocmd BufRead,BufNewFile *.yaml set tabstop=2 expandtab
if has("autocmd")
augroup redhat
autocmd!
" In text files, always limit the width of text to 78 characters
" autocmd BufRead *.txt set tw=78
" When editing a file, always jump to the last cursor position
autocmd BufReadPost *
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
\ exe "normal! g'\"" |
\ endif
" don't write swapfile on most commonly used directories for NFS mounts or USB sticks
autocmd BufNewFile,BufReadPre /media/*,/run/media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp
" start with spec file template
autocmd BufNewFile *.spec 0r /usr/share/vim/vimfiles/template.spec
augroup END
endif
autocmd BufRead,BufNewFile *.py set softtabstop=4 expandtab shiftwidth=4