- disable templates when editing new .c / .h files (#175878)

This commit is contained in:
Karsten Hopp 2005-12-20 12:03:54 +00:00
parent 8124c69f6e
commit 937d1ce674
2 changed files with 51 additions and 28 deletions

View File

@ -1,27 +1,6 @@
--- vim63/cvim/plugin/c.vim.rhdefaults 2005-09-08 09:37:42.000000000 +0000 --- vim64/runtime/doc/tags.rhcvim 2005-10-15 16:00:26.000000000 +0200
+++ vim63/cvim/plugin/c.vim 2005-09-08 09:39:24.000000000 +0000 +++ vim64/runtime/doc/tags 2005-12-20 12:08:06.000000000 +0100
@@ -48,7 +48,8 @@ @@ -4033,6 +4033,7 @@
"
else
"
- let s:root_dir = $HOME.'/.vim/'
+" let s:root_dir = $HOME.'/.vim/'
+ let s:root_dir = $VIMRUNTIME.'/'
let s:escfilename = ' \%#[]'
"
endif
@@ -64,7 +65,7 @@
"
" Modul global variables (with default values) which can be overridden.
"
-let s:C_AuthorName = ""
+let s:C_AuthorName = "read README.csupport to learn how to set defaults"
let s:C_AuthorRef = ""
let s:C_Email = ""
let s:C_Company = ""
--- vim63/runtime/doc/tags.rhdefaults 2005-09-08 09:45:25.000000000 +0000
+++ vim63/runtime/doc/tags 2005-09-08 09:45:45.000000000 +0000
@@ -4028,6 +4028,7 @@
byte2line() eval.txt /*byte2line()* byte2line() eval.txt /*byte2line()*
bzip2 pi_gzip.txt /*bzip2* bzip2 pi_gzip.txt /*bzip2*
c change.txt /*c* c change.txt /*c*
@ -29,7 +8,7 @@
c-syntax syntax.txt /*c-syntax* c-syntax syntax.txt /*c-syntax*
c.vim syntax.txt /*c.vim* c.vim syntax.txt /*c.vim*
cW change.txt /*cW* cW change.txt /*cW*
@@ -4272,6 +4273,41 @@ @@ -4278,6 +4279,41 @@
csqf if_cscop.txt /*csqf* csqf if_cscop.txt /*csqf*
cst if_cscop.txt /*cst* cst if_cscop.txt /*cst*
csto if_cscop.txt /*csto* csto if_cscop.txt /*csto*
@ -71,7 +50,7 @@
csverb if_cscop.txt /*csverb* csverb if_cscop.txt /*csverb*
ctags tagsrch.txt /*ctags* ctags tagsrch.txt /*ctags*
ctags-gone version6.txt /*ctags-gone* ctags-gone version6.txt /*ctags-gone*
@@ -4846,7 +4883,6 @@ @@ -4857,7 +4893,6 @@
hebrew.txt hebrew.txt /*hebrew.txt* hebrew.txt hebrew.txt /*hebrew.txt*
help various.txt /*help* help various.txt /*help*
help-context help.txt /*help-context* help-context help.txt /*help-context*
@ -79,3 +58,43 @@
help-translated various.txt /*help-translated* help-translated various.txt /*help-translated*
help-xterm-window various.txt /*help-xterm-window* help-xterm-window various.txt /*help-xterm-window*
help.txt help.txt /*help.txt* help.txt help.txt /*help.txt*
--- vim64/cvim/plugin/c.vim.rhcvim 2005-09-03 12:00:40.000000000 +0200
+++ vim64/cvim/plugin/c.vim 2005-12-20 12:09:37.000000000 +0100
@@ -48,7 +48,8 @@
"
else
"
- let s:root_dir = $HOME.'/.vim/'
+" let s:root_dir = $HOME.'/.vim/'
+ let s:root_dir = $VIMRUNTIME.'/'
let s:escfilename = ' \%#[]'
"
endif
@@ -64,7 +65,7 @@
"
" Modul global variables (with default values) which can be overridden.
"
-let s:C_AuthorName = ""
+let s:C_AuthorName = "read README.csupport to learn how to set defaults"
let s:C_AuthorRef = ""
let s:C_Email = ""
let s:C_Company = ""
@@ -2465,12 +2466,12 @@
" Automated header insertion
"------------------------------------------------------------------------------
"
-if has("autocmd")
- autocmd BufNewFile *.c,*.cc,*.cxx,*.c++,*.C,*.H,*.hh,*.hxx,*.hpp,*.moc,*.tcc,*.inl
- \ call C_CommentTemplates('cheader')
- autocmd BufNewFile *.hh,*.hxx,*.hpp
- \ call C_CommentTemplates('hheader')
-endif " has("autocmd")
+" if has("autocmd")
+" autocmd BufNewFile *.c,*.cc,*.cxx,*.c++,*.C,*.H,*.hh,*.hxx,*.hpp,*.moc,*.tcc,*.inl
+" \ call C_CommentTemplates('cheader')
+" autocmd BufNewFile *.hh,*.hxx,*.hpp
+" \ call C_CommentTemplates('hheader')
+" endif " has("autocmd")
"
"=====================================================================================
" vim: set tabstop=2 shiftwidth=2:

View File

@ -25,7 +25,7 @@
Summary: The VIM editor. Summary: The VIM editor.
Name: vim Name: vim
Version: %{baseversion}.%{patchlevel} Version: %{baseversion}.%{patchlevel}
Release: 1.1 Release: 2
License: freeware License: freeware
Group: Applications/Editors Group: Applications/Editors
Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}.tar.bz2 Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}.tar.bz2
@ -202,13 +202,14 @@ perl -pi -e "s,bin/nawk,bin/awk,g" runtime/tools/mve.awk
%patch3100 -p1 %patch3100 -p1
%endif %endif
%build
%if "%{withcvim}" == "1" %if "%{withcvim}" == "1"
mkdir cvim mkdir cvim
( cd cvim; unzip %{SOURCE12}; ) ( cd cvim; unzip %{SOURCE12}; )
patch -p1 < %{PATCH3008} patch -p1 < %{PATCH3008}
%endif %endif
%build
cd src cd src
autoconf autoconf
perl -pi -e "s,\\\$VIMRUNTIME,/usr/share/vim/%{vimdir},g" os_unix.h perl -pi -e "s,\\\$VIMRUNTIME,/usr/share/vim/%{vimdir},g" os_unix.h
@ -483,6 +484,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/icons/hicolor/*/apps/* %{_datadir}/icons/hicolor/*/apps/*
%changelog %changelog
* Tue Dec 20 2005 Karsten Hopp <karsten@redhat.de> 6.4.004-2
- disable templates when editing new .c / .h files (#175878)
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
- rebuilt - rebuilt