diff --git a/vimrc b/vimrc index 0268b41..17bec04 100644 --- a/vimrc +++ b/vimrc @@ -228,7 +228,7 @@ endif if has('autocmd') if has('unix') - autocmd VimEnter *.ps1 setl ff=unix + autocmd BufWrite *.ps1 setl ff=unix endif autocmd BufRead,BufNewFile * set omnifunc=syntaxcomplete#Complete autocmd BufRead,BufNewFile *.go set noet sw=8 ts=8