set mouse=a " use mouse set number " show numbers set tabstop=4 " tab size 4 syntax on " syntax highlight set autoindent " auto indentation set expandtab set softtabstop=4 " tab 4 set clipboard=unnamed filetype indent on " load filetype-specific indent files filetype plugin on " indentation set cursorline " highlight current line set wildmenu " visual autocomplete for command menu set showmatch " highlight matching [{()}] set incsearch " search as characters are entered set hlsearch " highlight matches set foldenable " enable folding set modelines=1 set autoindent " Copy indent from last line when starting new line set autoread " Set to auto read when a file is changed from the outside augroup configgroup autocmd! autocmd VimEnter * highlight clear SignColumn autocmd BufWritePre *.php,*.py,*.js,*.txt,*.hs,*.java,*.md \:call StripTrailingWhitespaces() autocmd FileType java setlocal noexpandtab autocmd FileType java setlocal list autocmd FileType java setlocal listchars=tab:+\ ,eol:- autocmd FileType java setlocal formatprg=par\ -w80\ -T4 autocmd FileType php setlocal expandtab autocmd FileType php setlocal list autocmd FileType php setlocal listchars=tab:+\ ,eol:- autocmd FileType php setlocal formatprg=par\ -w80\ -T4 autocmd FileType ruby setlocal tabstop=2 autocmd FileType ruby setlocal shiftwidth=2 autocmd FileType ruby setlocal softtabstop=2 autocmd FileType ruby setlocal commentstring=#\ %s autocmd FileType python setlocal commentstring=#\ %s autocmd BufEnter *.cls setlocal filetype=java autocmd BufEnter *.zsh-theme setlocal filetype=zsh autocmd BufEnter Makefile setlocal noexpandtab autocmd BufEnter *.sh setlocal tabstop=2 autocmd BufEnter *.sh setlocal shiftwidth=2 autocmd BufEnter *.sh setlocal softtabstop=2 augroup END " Syntastic. set statusline+=%#warningmsg# set statusline+=%{SyntasticStatuslineFlag()} set statusline+=%* let g:syntastic_phpcs_disable = 1 let g:syntastic_phpmd_disable = 1 let g:syntastic_php_checkers = ['php'] let g:syntastic_quiet_messages = { "type": "style" } let g:syntastic_aggregate_errors = 1 let g:syntastic_auto_jump = 2 let g:syntastic_always_populate_loc_list = 1 let g:syntastic_auto_loc_list = 1 let g:syntastic_check_on_open = 1 let g:syntastic_check_on_wq = 0 " Backuo : set backup set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp set backupskip=/tmp/*,/private/tmp/* set directory=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp set writebackup