Change ff on BufWrite, not VimEnter

This commit is contained in:
Anthony Rose 2024-06-25 09:06:52 +01:00
parent 6cf521af70
commit 1f785b1e17

2
vimrc
View file

@ -228,7 +228,7 @@ endif
if has('autocmd') if has('autocmd')
if has('unix') if has('unix')
autocmd VimEnter *.ps1 setl ff=unix autocmd BufWrite *.ps1 setl ff=unix
endif endif
autocmd BufRead,BufNewFile * set omnifunc=syntaxcomplete#Complete autocmd BufRead,BufNewFile * set omnifunc=syntaxcomplete#Complete
autocmd BufRead,BufNewFile *.go set noet sw=8 ts=8 autocmd BufRead,BufNewFile *.go set noet sw=8 ts=8