From 0826a5065e63fd445b36d75bf67822874e4b67ac Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Fri, 21 Apr 2017 16:02:37 +0100 Subject: [PATCH] Work on autocommands --- .vimrc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.vimrc b/.vimrc index 3e314d4..7b5d87a 100644 --- a/.vimrc +++ b/.vimrc @@ -177,11 +177,10 @@ augroup END " augroup new_html autocmd! - autocmd BufNew *.html execute "read ~/Templates/html" - autocmd BufNew *.html execute "normal! ggdd" - autocmd BufNew *.html execute NextMark() + autocmd BufNew *.html read ~/Templates/html + autocmd BufNew *.html normal! ggdd + "autocmd BufNew *.html call NextMark() autocmd BufNew *.html setlocal filetype=html - augroup END " augroup file_vim