rpms/vim/devel vim.spec,1.209,1.210 vimrc,1.19,1.20

Karsten Hopp (karsten) fedora-extras-commits at redhat.com
Tue Jun 3 14:35:13 UTC 2008


Author: karsten

Update of /cvs/extras/rpms/vim/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6053

Modified Files:
	vim.spec vimrc 
Log Message:
- put /etc/vimrc autocmd's into fedora augroup (similar to #241308)



Index: vim.spec
===================================================================
RCS file: /cvs/extras/rpms/vim/devel/vim.spec,v
retrieving revision 1.209
retrieving revision 1.210
diff -u -r1.209 -r1.210
--- vim.spec	3 Jun 2008 13:00:42 -0000	1.209
+++ vim.spec	3 Jun 2008 14:34:32 -0000	1.210
@@ -1223,6 +1223,7 @@
 %changelog
 * Tue Jun 03 2008 Karsten Hopp <karsten at redhat.com> 7.1.305-1
 - patchlevel 305
+- put /etc/vimrc autocmd's into fedora augroup (similar to #241308)
 
 * Thu May 15 2008 Karsten Hopp <karsten at redhat.com> 7.1.298-1
 - patchlevel 298


Index: vimrc
===================================================================
RCS file: /cvs/extras/rpms/vim/devel/vimrc,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- vimrc	11 Mar 2008 13:03:02 -0000	1.19
+++ vimrc	3 Jun 2008 14:34:32 -0000	1.20
@@ -13,6 +13,8 @@
 
 " Only do this part when compiled with support for autocommands
 if has("autocmd")
+  augroup fedora
+  autocmd!
   " 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
@@ -24,6 +26,7 @@
   autocmd BufNewFile,BufReadPre /media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp
   " start with spec file template
   autocmd BufNewFile *.spec 0r /usr/share/vim/vimfiles/template.spec
+  augroup END
 endif
 
 if has("cscope") && filereadable("/usr/bin/cscope")




More information about the fedora-extras-commits mailing list