aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-09-05 13:40:53 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-09-05 13:40:53 +1200
commitf452223852374b9323845110da5abdb44410ef31 (patch)
tree0671fd61c4e8831e61a8849075a089aa9a7aca9e /vim/vimrc
parentBetter graceful degradation for prompt formatting (diff)
downloaddotfiles-f452223852374b9323845110da5abdb44410ef31.tar.gz
dotfiles-f452223852374b9323845110da5abdb44410ef31.zip
Check +autocmd before removing Fedora augroup
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc8
1 files changed, 5 insertions, 3 deletions
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