mirror of
https://github.com/spf13/spf13-vim.git
synced 2024-09-21 07:27:11 +00:00
autocmd lines should be moved to the .vimrc file as per advice from spf13-vim upstream.
This commit is contained in:
parent
af978434c0
commit
86c946c084
2
.vimrc
2
.vimrc
@ -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')
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user