From f452223852374b9323845110da5abdb44410ef31 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 5 Sep 2013 13:40:53 +1200 Subject: Check +autocmd before removing Fedora augroup --- vim/vimrc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'vim/vimrc') diff --git a/vim/vimrc b/vim/vimrc index 9a95d996..3c6de16e 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -533,9 +533,11 @@ nnoremap Y y$ " Fedora's default environment adds a few auto commands that I don't like, " including the 'return to previous position in buffer' one; fortunately " they're nice enough to group the commands, so I can just clear them -augroup fedora - autocmd! -augroup END +if has('autocmd') + augroup fedora + autocmd! + augroup END +endif " If a file named ~/.vimrc.local exists, source its configuration; this is " useful for defining filetype rules on systems which happen to have files of -- cgit v1.2.3