Red Hat Bugzilla – Bug 241308
please use augroup for /etc/vimrc autocmds
Last modified: 2013-04-12 15:09:42 EDT
Description of problem:
There's no way for the user to cleanly remove the RH-provided autocmds.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. edit ~/.vimrc
2. attempt to remove RH-provided autocmds
3. best you can do is remove all autocmds using autocmd!, not ideal
This would fix it...
--- /etc/vimrc.old 2006-09-28 23:05:34.000000000 -0400
+++ /etc/vimrc 2007-05-24 19:08:12.000000000 -0400
@@ -13,6 +13,8 @@
" Only do this part when compiled with support for autocommands
+ augroup redhat
" In text files, always limit the width of text to 78 characters
autocmd BufRead *.txt set tw=78
" When editing a file, always jump to the last cursor position
@@ -20,6 +22,7 @@
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
\ exe "normal! g'\"" |
+ augroup END
if has("cscope") && filereadable("/usr/bin/cscope")
Proposing for RHEL-5.3 and granting Devel ACK.
Read ya, Phil
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.