diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-09-05 13:40:53 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-09-05 13:40:53 +1200 |
commit | f452223852374b9323845110da5abdb44410ef31 (patch) | |
tree | 0671fd61c4e8831e61a8849075a089aa9a7aca9e /vim/vimrc | |
parent | Better graceful degradation for prompt formatting (diff) | |
download | dotfiles-f452223852374b9323845110da5abdb44410ef31.tar.gz dotfiles-f452223852374b9323845110da5abdb44410ef31.zip |
Check +autocmd before removing Fedora augroup
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |