- 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
|
%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
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
|
" 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")
|
||||||
|
Loading…
Reference in New Issue
Block a user