- put /etc/vimrc autocmd's into fedora augroup (similar to #241308)
This commit is contained in:
parent
5579d1175b
commit
422c1ab718
1
vim.spec
1
vim.spec
@ -1223,6 +1223,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%changelog
|
||||
* Tue Jun 03 2008 Karsten Hopp <karsten@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@redhat.com> 7.1.298-1
|
||||
- patchlevel 298
|
||||
|
3
vimrc
3
vimrc
@ -13,6 +13,8 @@ set ruler " show the cursor position all the time
|
||||
|
||||
" 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 @@ if has("autocmd")
|
||||
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")
|
||||
|
Loading…
Reference in New Issue
Block a user