From 1f785b1e1744d5f1c75c3e304bf827f6770f0cfa Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Tue, 25 Jun 2024 09:06:52 +0100 Subject: [PATCH] Change ff on BufWrite, not VimEnter --- vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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