autocmd lines should be moved to the .vimrc file as per advice from spf13-vim upstream.

This commit is contained in:
Edward O'Callaghan 2013-06-21 21:21:43 +10:00
parent af978434c0
commit 86c946c084
2 changed files with 2 additions and 2 deletions

2
.vimrc
View File

@ -188,6 +188,7 @@
autocmd FileType c,cpp,java,go,php,javascript,python,twig,xml,yml autocmd BufWritePre <buffer> call StripTrailingWhitespace()
autocmd FileType go autocmd BufWritePre <buffer> Fmt
autocmd BufNewFile,BufRead *.html.twig set filetype=html.twig
autocmd FileType haskell setlocal expandtab shiftwidth=2 softtabstop=2
" }
@ -523,6 +524,7 @@
autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags
autocmd FileType ruby setlocal omnifunc=rubycomplete#Complete
autocmd FileType haskell setlocal omnifunc=necoghc#omnifunc
" Enable heavy omni completion.
if !exists('g:neocomplcache_omni_patterns')

View File

@ -173,8 +173,6 @@
Bundle 'Shougo/vimproc'
Bundle 'adinapoli/cumino'
Bundle 'bitc/vim-hdevtools'
autocmd FileType haskell setlocal expandtab shiftwidth=2 softtabstop=2
autocmd FileType haskell setlocal omnifunc=necoghc#omnifunc
endif
" HTML