- put /etc/vimrc autocmd's into fedora augroup (similar to #241308)

This commit is contained in:
Karsten Hopp 2008-06-03 14:34:32 +00:00
parent 5579d1175b
commit 422c1ab718
2 changed files with 4 additions and 0 deletions

View File

@ -1223,6 +1223,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Tue Jun 03 2008 Karsten Hopp <karsten@redhat.com> 7.1.305-1 * Tue Jun 03 2008 Karsten Hopp <karsten@redhat.com> 7.1.305-1
- patchlevel 305 - patchlevel 305
- put /etc/vimrc autocmd's into fedora augroup (similar to #241308)
* Thu May 15 2008 Karsten Hopp <karsten@redhat.com> 7.1.298-1 * Thu May 15 2008 Karsten Hopp <karsten@redhat.com> 7.1.298-1
- patchlevel 298 - patchlevel 298

3
vimrc
View File

@ -13,6 +13,8 @@ set ruler " show the cursor position all the time
" Only do this part when compiled with support for autocommands " Only do this part when compiled with support for autocommands
if has("autocmd") if has("autocmd")
augroup fedora
autocmd!
" In text files, always limit the width of text to 78 characters " In text files, always limit the width of text to 78 characters
autocmd BufRead *.txt set tw=78 autocmd BufRead *.txt set tw=78
" When editing a file, always jump to the last cursor position " When editing a file, always jump to the last cursor position
@ -24,6 +26,7 @@ if has("autocmd")
autocmd BufNewFile,BufReadPre /media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp autocmd BufNewFile,BufReadPre /media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp
" start with spec file template " start with spec file template
autocmd BufNewFile *.spec 0r /usr/share/vim/vimfiles/template.spec autocmd BufNewFile *.spec 0r /usr/share/vim/vimfiles/template.spec
augroup END
endif endif
if has("cscope") && filereadable("/usr/bin/cscope") if has("cscope") && filereadable("/usr/bin/cscope")