From f1dd3151e6994ecdff643a78b2d71675be4f7827 Mon Sep 17 00:00:00 2001 From: cvsdist Date: Thu, 9 Sep 2004 13:57:11 +0000 Subject: [PATCH] =?UTF-8?q?auto-import=20changelog=20data=20from=20vim-5.7?= =?UTF-8?q?-6.src.rpm=20Sun=20Aug=2006=202000=20Tim=20Waugh=20=20-=20xterm=20doesn't=20have=20request=20version=20stri?= =?UTF-8?q?ng=20(#14570)=20Sat=20Aug=2005=202000=20Bernhard=20Rosenkraenze?= =?UTF-8?q?r=20=20-=20Patchlevel=208=20Fri=20Aug=2004=202?= =?UTF-8?q?000=20Bernhard=20Rosenkraenzer=20=20-=20Fix=20?= =?UTF-8?q?paths=20in=20vim.1=20manpage=20(Bug=20#15387)=20Wed=20Jul=2019?= =?UTF-8?q?=202000=20Bernhard=20Rosenkraenzer=20=20-=20Fi?= =?UTF-8?q?x=20up=20vimtutor=20(Bug=20#11455)=20Thu=20Jul=2013=202000=20Pr?= =?UTF-8?q?ospector=20=20-=20automatic=20rebuild=20Su?= =?UTF-8?q?n=20Jun=2025=202000=20Bernhard=20Rosenkraenzer=20=20-=205.7=20release=20-=20some=20more=20fixes=20to=20.spec?= =?UTF-8?q?=20file=20syntax=20highlighting=20rules...=20About=20time=20it?= =?UTF-8?q?=20=20=20=20=20recognizes=20%{=5Fmandir}...=20Sun=20Jun=2018=20?= =?UTF-8?q?2000=20Bernhard=20Rosenkraenzer=20=20-=205.7a?= =?UTF-8?q?=20Sat=20Jun=2003=202000=20Bernhard=20Rosenkr=E4nzer=20=20-=20patchlevel=2074=20-=20add=20%makeinstall=20macr?= =?UTF-8?q?o=20recognition=20to=20.spec=20file=20syntax=20highlighting=20?= =?UTF-8?q?=20=20=20=20rules=20-=20fix=20up=20Makefiles=20Fri=20Apr=2014?= =?UTF-8?q?=202000=20Bernhard=20Rosenkr=E4nzer=20=20-=20p?= =?UTF-8?q?atchlevel=2066=20-=20fix=20compilation=20with=20perl=205.6.0=20?= =?UTF-8?q?Mon=20Mar=2020=202000=20Bernhard=20Rosenkr=E4nzer=20=20-=20patchlevel=2012=20Tue=20Mar=2007=202000=20Preston?= =?UTF-8?q?=20Brown=20=20-=20fix=20home/end=20in=20vimr?= =?UTF-8?q?c=20(we=20did=20a=20term=20=3D=20rxvt,=20totally=20wrong)=20Tue?= =?UTF-8?q?=20Feb=2029=202000=20Preston=20Brown=20=20-?= =?UTF-8?q?=20change=20F1-F4=20keybindings=20for=20xterm=20builtin=20termi?= =?UTF-8?q?nfo=20to=20match=20real=20=20=20=20=20terminfo=20Thu=20Feb=2017?= =?UTF-8?q?=202000=20Bill=20Nottingham=20=20-=20kill?= =?UTF-8?q?=20autoindent=20Mon=20Feb=2007=202000=20Preston=20Brown=20=20-=20wmconfig=20->=20desktop=20Sat=20Feb=2005?= =?UTF-8?q?=202000=20Bernhard=20Rosenkr=E4nzer=20=20-=20P?= =?UTF-8?q?atchlevel=2011=20-=20handle=20compressed=20man=20pages=20-=20fi?= =?UTF-8?q?x=20man=20page=20symlinks=20Wed=20Feb=2002=202000=20Bill=20Nott?= =?UTF-8?q?ingham=20=20-=20eliminate=20dependencies=20?= =?UTF-8?q?on=20X=20in=20vim-enhanced,=20and=20ncurses/gpm=20in=20=20=20?= =?UTF-8?q?=20=20vim-minimal=20Fri=20Jan=2028=202000=20Bill=20Nottingham?= =?UTF-8?q?=20=20-=20eliminate=20dependencies=20on=20c?= =?UTF-8?q?sh=20and=20perl=20in=20vim-common=20Wed=20Jan=2019=202000=20Ber?= =?UTF-8?q?nhard=20Rosenrk=E4nzer=20=20-=20Use=20awk,=20n?= =?UTF-8?q?ot=20nawk=20Tue=20Jan=2018=202000=20Bernhard=20Rosenrk=E4nzer?= =?UTF-8?q?=20=20-=205.6=20-=20patch=205.6.001=20-=20remo?= =?UTF-8?q?ve=20/usr/bin/vi=20-=20if=20you=20want=20vim,=20type=20vim=20Tu?= =?UTF-8?q?e=20Jan=2011=202000=20Bernhard=20Rosenkr=E4nzer=20=20-=205.6a=20-=20Remove=20dependency=20on=20nawk=20(introd?= =?UTF-8?q?uced=20by=20base=20update)=20-=20some=20tweaks=20to=20make=20up?= =?UTF-8?q?dating=20easier=20Tue=20Nov=2009=201999=20Bernhard=20Rosenkr=E4?= =?UTF-8?q?nzer=20=20-=205.5=20-=20fix=20path=20to=20vimr?= =?UTF-8?q?c=20Tue=20Jul=2027=201999=20Michael=20K.=20Johnson=20=20-=20moved=20from=20athena=20to=20gtk=20widgets=20?= =?UTF-8?q?for=20X=20version=20-=20removed=20vim.1=20from=20X11=20filelist?= =?UTF-8?q?=20because=20X11=20depends=20on=20vim-common=20anyway=20-=20fix?= =?UTF-8?q?ed=20rogue=20dependencies=20from=20sample=20files=20Tue=20Jul?= =?UTF-8?q?=2027=201999=20Jeff=20Johnson=20=20-=20update?= =?UTF-8?q?=20to=205.4.=20Thu=20Jul=2022=201999=20Jeff=20Johnson=20=20-=20man=20page=20had=20buildroot=20pollution=20(#36?= =?UTF-8?q?29).=20Thu=20Mar=2025=201999=20Preston=20Brown=20=20-=20with=20recent=20termcap/terminfo=20fixes,=20regular?= =?UTF-8?q?=20vim=20works=20in=20xterm/console=20-=20in=20color,=20so=20vi?= =?UTF-8?q?m-color=20package=20removed.=20Tue=20Mar=2023=201999=20Erik=20T?= =?UTF-8?q?roan=20=20-=20removed=20"set=20backupdir=3D/tmp?= =?UTF-8?q?/vim=5Fbackup"=20from=20default=20vimrc=20Sun=20Mar=2021=201999?= =?UTF-8?q?=20Cristian=20Gafton=20=20-=20auto=20rebuild?= =?UTF-8?q?=20in=20the=20new=20build=20environment=20(release=205)=20Thu?= =?UTF-8?q?=20Dec=2017=201998=20Michael=20Maher=20=20-=20?= =?UTF-8?q?built=20pacakge=20for=206.0=20Tue=20Sep=2015=201998=20Michael?= =?UTF-8?q?=20Maher=20=20-=20removed=20'--with-tlib=3Dter?= =?UTF-8?q?mcap'=20so=20that=20color-vim=20works=20Wed=20Sep=2002=201998?= =?UTF-8?q?=20Jeff=20Johnson=20=20-=20update=20to=205.3.?= =?UTF-8?q?=20Mon=20Aug=2010=201998=20Jeff=20Johnson=20=20?= =?UTF-8?q?-=20merge=20in=20Toshio's=20changes=20-=20color-vim:=20changed?= =?UTF-8?q?=20"--disable-p"=20to=20"--disable-perlinterp=20=20=20=20=20--w?= =?UTF-8?q?ith-tlib=3Dtermcap"=20-=20added=20minimal=20rvi/rview=20and=20m?= =?UTF-8?q?an=20pages.=20-=20move=20Obsoletes=20to=20same=20package=20as?= =?UTF-8?q?=20executable.=20Thu=20Aug=2006=201998=20Toshio=20Kuratomi=20=20-=20Break=20the=20package=20apart=20s?= =?UTF-8?q?imilar=20to=20the=20way=20the=20netscape=20package=20was=20=20?= =?UTF-8?q?=20=20=20broken=20down=20to=20handle=20navigator=20or=20communi?= =?UTF-8?q?cator:=20The=20vim=20package=20is=20=20=20=20=20Obsolete,=20now?= =?UTF-8?q?=20there=20is=20vim-common=20with=20all=20the=20common=20files,?= =?UTF-8?q?=20and=20a=20=20=20=20=20package=20for=20each=20binary:=20vim-m?= =?UTF-8?q?inimal=20(has=20/bin/vi=20compiled=20with=20no=20=20=20=20=20fr?= =?UTF-8?q?ills),=20vim-enhanced=20(has=20/usr/bin/vim=20with=20extra=20pe?= =?UTF-8?q?rl=20and=20python=20=20=20=20=20interpreters),=20and=20vim-X11?= =?UTF-8?q?=20(has=20/usr/X11R6/bin/gvim=20compiled=20with=20GUI=20=20=20?= =?UTF-8?q?=20=20support.)=20-=20Enable=20the=20perl=20and=20python=20inte?= =?UTF-8?q?rpreters=20in=20the=20gui=20version=20(gvim).=20Tue=20Jun=2030?= =?UTF-8?q?=201998=20Michael=20Maher=20=20-=20Fixed=20tut?= =?UTF-8?q?or=20help.=20-=20cvim=20package=20added.=20Thanks=20to=20Stevie?= =?UTF-8?q?=20Wills=20for=20finding=20this=20one=20:-)=20Thu=20May=2007=20?= =?UTF-8?q?1998=20Prospector=20System=20=20-=20translatio?= =?UTF-8?q?ns=20modified=20for=20de,=20fr,=20tr=20Fri=20May=2001=201998=20?= =?UTF-8?q?Donnie=20Barnes=20=20-=20added=20patch=20to=20t?= =?UTF-8?q?urn=20off=20the=20"vi=20compatibility"=20by=20default.=20You=20?= =?UTF-8?q?can=20still=20=20=20=20=20get=20it=20via=20the=20-C=20command?= =?UTF-8?q?=20line=20option=20Thu=20Apr=2023=201998=20Donnie=20Barnes=20=20-=20removed=20perl=20and=20python=20interprete?= =?UTF-8?q?rs=20(sorry,=20but=20those=20don't=20belong=20in=20a=20=20=20?= =?UTF-8?q?=20=20/bin/vi=20and=20having=20two=20vi's=20seemed=20like=20ove?= =?UTF-8?q?rkill...complain=20to=20=20=20=20=20suggest@redhat.com=20if=20y?= =?UTF-8?q?ou=20care)=20Fri=20Apr=2017=201998=20Donnie=20Barnes=20=20-=20fixed=20buildroot=20bug=20Sat=20Apr=2011=201998?= =?UTF-8?q?=20Donnie=20Barnes=20=20-=20updated=20from=204.?= =?UTF-8?q?6=20to=205.1=20-=20moved=20to=20buildroot=20Sun=20Nov=2009=2019?= =?UTF-8?q?97=20Donnie=20Barnes=20=20-=20fixed=20missing?= =?UTF-8?q?=20man=20page=20Wed=20Oct=2022=201997=20Donnie=20Barnes=20=20-=20added=20wmconfig=20entry=20to=20vim-X11=20Mon?= =?UTF-8?q?=20Oct=2020=201997=20Donnie=20Barnes=20=20-=20u?= =?UTF-8?q?pgraded=20from=204.5=20to=204.6=20Fri=20Jun=2013=201997=20Erik?= =?UTF-8?q?=20Troan=20=20-=20built=20against=20glibc=20Tue?= =?UTF-8?q?=20Mar=2025=201997=20Michael=20K.=20Johnson=20=20-=20Upgraded=20to=204.5=20-=20Added=20ex=20symlinks=20Tu?= =?UTF-8?q?e=20Mar=2011=201997=20Michael=20K.=20Johnson=20=20-=20Added=20view=20symlink.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cvsignore | 2 + sources | 2 + vim.spec | 414 +++++++++++++++++++++++++++++++++++++++++++++++++++++ vimrc | 87 +++++++++++ 4 files changed, 505 insertions(+) create mode 100644 vim.spec create mode 100644 vimrc diff --git a/.cvsignore b/.cvsignore index e69de29b..153e17ca 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1,2 @@ +vim-5.7-rt.tar.gz +vim-5.7-src.tar.gz diff --git a/sources b/sources index e69de29b..0f1f7168 100644 --- a/sources +++ b/sources @@ -0,0 +1,2 @@ +b7d9cbc64479e26f52e2bc58d312bd84 vim-5.7-rt.tar.gz +0b2bca69c7018a8777d8d5390e23d06e vim-5.7-src.tar.gz diff --git a/vim.spec b/vim.spec new file mode 100644 index 00000000..892231a0 --- /dev/null +++ b/vim.spec @@ -0,0 +1,414 @@ +Summary: The VIM editor. +Name: vim +Version: 5.7 +%define vimversion vim57 +Release: 6 +Copyright: freeware +Group: Applications/Editors +Source0: ftp://ftp.home.vim.org/pub/vim/unix/vim-%{version}-src.tar.gz +Source1: ftp://ftp.home.vim.org/pub/vim/unix/vim-%{version}-rt.tar.gz +Source3: vimrc +Patch0: vim-4.2-speed_t.patch +Patch1: vim-5.1-vimnotvi.patch +Patch2: vim-5.6a-paths.patch +Patch3: vim-5.6-fixkeys.patch +Patch4: vim-5.6-specsyntax.patch +Patch5: vim-5.6-destdir.patch +Patch6: vim-5.7-redhat.patch +Patch7: vim-5.7-docpath.patch +Patch8: vim-5.7-crv.patch +Patch101: 5.7.001 +Patch102: 5.7.002 +Patch103: 5.7.003 +Patch104: 5.7.004 +Patch105: 5.7.005 +Patch106: 5.7.006 +Patch107: 5.7.007 +Patch108: 5.7.008 +Buildroot: /var/tmp/vim-root +Buildrequires: python-devel perl gtk+-devel + +%description +VIM (VIsual editor iMproved) is an updated and improved version of the +vi editor. Vi was the first real screen-based editor for UNIX, and is +still very popular. VIM improves on vi by adding new features: +multiple windows, multi-level undo, block highlighting and more. + +%package common +Summary: The common files needed by any version of the VIM editor. +Group: Applications/Editors + +%description common +VIM (VIsual editor iMproved) is an updated and improved version of the +vi editor. Vi was the first real screen-based editor for UNIX, and is +still very popular. VIM improves on vi by adding new features: +multiple windows, multi-level undo, block highlighting and more. The +vim-common package contains files which every VIM binary will need in +order to run. + +If you are installing any version of the VIM editor, you'll also need +to the vim-common package installed. + +%package minimal +Summary: A minimal version of the VIM editor. +Group: Applications/Editors +Requires: vim-common +Obsoletes: vim + +%description minimal +VIM (VIsual editor iMproved) is an updated and improved version of the +vi editor. Vi was the first real screen-based editor for UNIX, and is +still very popular. VIM improves on vi by adding new features: +multiple windows, multi-level undo, block highlighting and more. The +vim-minimal package includes a minimal version of VIM, which is +installed into /bin/vi for use when only the root partition is +present. + +%package enhanced +Summary: A version of the VIM editor which includes recent enhancements. +Group: Applications/Editors +Requires: vim-common +Obsoletes: vim-color + +%description enhanced +VIM (VIsual editor iMproved) is an updated and improved version of the +vi editor. Vi was the first real screen-based editor for UNIX, and is +still very popular. VIM improves on vi by adding new features: +multiple windows, multi-level undo, block highlighting and more. The +vim-enhanced package contains a version of VIM with extra, recently +introduced features like Python and Perl interpreters. + +Install the vim-enhanced package if you'd like to use a version of the +VIM editor which includes recently added enhancements like +interpreters for the Python and Perl scripting languages. You'll also +need to install the vim-common package. + +%package X11 +Summary: The VIM version of the vi editor for the X Window System. +Group: Applications/Editors +Requires: vim-common + +%description X11 +VIM (VIsual editor iMproved) is an updated and improved version of the +vi editor. Vi was the first real screen-based editor for UNIX, and is +still very popular. VIM improves on vi by adding new features: +multiple windows, multi-level undo, block highlighting and +more. VIM-X11 is a version of the VIM editor which will run within the +X Window System. If you install this package, you can run VIM as an X +application with a full GUI interface and mouse support. + +Install the vim-X11 package if you'd like to try out a version of vi +with graphics and mouse capabilities. You'll also need to install the +vim-common package. + +%prep +%setup -q -b 1 +%patch0 -p1 -b .4.2 +%patch1 -p1 -b .vim +# fix rogue dependencies from sample code +chmod -x runtime/tools/mve.awk +%patch2 -p1 -b .paths +find . -name \*.paths | xargs rm -f +%patch3 -p1 -b .fixkeys +%patch4 -p1 -b .highlite +%patch5 -p1 -b .destdir +%patch6 -p1 -b .redhat +%patch7 -p1 -b .docs +%patch8 -p1 -b .crv + +%patch101 -p0 -b .p1 +%patch102 -p0 -b .p2 +%patch103 -p0 -b .p3 +%patch104 -p0 -b .p4 +%patch105 -p0 -b .p5 +%patch106 -p0 -b .p6 +%patch107 -p0 -b .p7 +%patch108 -p0 -b .p8 + +perl -pi -e "s,bin/nawk,bin/awk,g" runtime/tools/mve.awk + +%build +cd src +perl -pi -e "s,\\\$VIMRUNTIME,/usr/share/vim/%{vimversion},g" os_unix.h +perl -pi -e "s,\\\$VIM,/usr/share/vim/%{vimversion}/macros,g" os_unix.h + +%configure --enable-max-features=yes --enable-pythoninterp --enable-perlinterp --disable-tclinterp --with-x=yes --enable-gui=gtk --exec-prefix=/usr/X11R6 +make if_perl.c +perl -pi -e "s,#define.*PL_na.*,,g" if_perl.c +perl -pi -e "s,#define.*PL_defgv.*,,g" if_perl.c +perl -pi -e "s,#define.*PL_errgv.*,,g" if_perl.c +make +cp vim gvim +make clean + +%configure --prefix=/usr --enable-max-features=yes --enable-pythoninterp \ + --enable-perlinterp --disable-tclinterp --with-x=no --enable-gui=no \ + --exec-prefix=/usr +make if_perl.c +perl -pi -e "s,#define.*PL_na.*,,g" if_perl.c +perl -pi -e "s,#define.*PL_defgv.*,,g" if_perl.c +perl -pi -e "s,#define.*PL_errgv.*,,g" if_perl.c +make +cp vim enhanced-vim +make clean + +%configure --prefix='${DEST}'/usr --enable-min-features=yes --with-x=no \ + --disable-pythoninterp --disable-perlinterp --disable-tclinterp \ + --with-tlib=termcap --enable-gui=no --disable-gpm --exec-prefix=/ +make if_perl.c +perl -pi -e "s,#define.*PL_na.*,,g" if_perl.c +perl -pi -e "s,#define.*PL_defgv.*,,g" if_perl.c +perl -pi -e "s,#define.*PL_errgv.*,,g" if_perl.c +make + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/bin +mkdir -p $RPM_BUILD_ROOT/usr/{bin,share/vim,X11R6/bin} + +cd src +%makeinstall BINDIR=$RPM_BUILD_ROOT/bin DESTDIR=$RPM_BUILD_ROOT +mv $RPM_BUILD_ROOT/bin/xxd $RPM_BUILD_ROOT/usr/bin +make installmacros DESTDIR=$RPM_BUILD_ROOT +install -s -m755 gvim $RPM_BUILD_ROOT/usr/X11R6/bin +install -s -m755 enhanced-vim $RPM_BUILD_ROOT/usr/bin/vim + +( cd $RPM_BUILD_ROOT + mv ./bin/vim ./bin/vi + mv ./bin/vimtutor ./usr/bin + rm -f ./bin/rvim + ln -sf vi ./bin/view + ln -sf vi ./bin/ex + ln -sf vi ./bin/rvi + ln -sf vi ./bin/rview + ln -sf vim ./usr/bin/ex + perl -pi -e "s,$RPM_BUILD_ROOT,," .%{_mandir}/man1/vim.1 .%{_mandir}/man1/vimtutor.1 + rm -f .%{_mandir}/man1/rvim.1 + ln -sf vim.1.gz .%{_mandir}/man1/vi.1.gz + ln -sf vim.1.gz .%{_mandir}/man1/rvi.1.gz + ln -sf vim.1.gz .%{_mandir}/man1/gvim.1.gz + ln -sf gvim ./usr/X11R6/bin/vimx + mkdir -p ./etc/X11/applnk/Utilities + cat > ./etc/X11/applnk/Utilities/gvim.desktop < +- xterm doesn't have request version string (#14570) + +* Sat Aug 5 2000 Bernhard Rosenkraenzer +- Patchlevel 8 + +* Fri Aug 4 2000 Bernhard Rosenkraenzer +- Fix paths in vim.1 manpage (Bug #15387) + +* Wed Jul 19 2000 Bernhard Rosenkraenzer +- Fix up vimtutor (Bug #11455) + +* Thu Jul 13 2000 Prospector +- automatic rebuild + +* Sun Jun 25 2000 Bernhard Rosenkraenzer +- 5.7 release +- some more fixes to .spec file syntax highlighting rules... About time it + recognizes %%{_mandir}... + +* Sun Jun 18 2000 Bernhard Rosenkraenzer +- 5.7a + +* Sat Jun 3 2000 Bernhard Rosenkränzer +- patchlevel 74 +- add %%makeinstall macro recognition to .spec file syntax highlighting rules +- fix up Makefiles + +* Fri Apr 14 2000 Bernhard Rosenkränzer +- patchlevel 66 +- fix compilation with perl 5.6.0 + +* Mon Mar 20 2000 Bernhard Rosenkränzer +- patchlevel 12 + +* Tue Mar 07 2000 Preston Brown +- fix home/end in vimrc (we did a term = rxvt, totally wrong) + +* Tue Feb 29 2000 Preston Brown +- change F1-F4 keybindings for xterm builtin terminfo to match real terminfo + +* Thu Feb 17 2000 Bill Nottingham +- kill autoindent + +* Mon Feb 07 2000 Preston Brown +- wmconfig -> desktop + +* Sat Feb 5 2000 Bernhard Rosenkränzer +- Patchlevel 11 +- handle compressed man pages +- fix man page symlinks + +* Wed Feb 2 2000 Bill Nottingham +- eliminate dependencies on X in vim-enhanced, and ncurses/gpm + in vim-minimal + +* Fri Jan 28 2000 Bill Nottingham +- eliminate dependencies on csh and perl in vim-common + +* Wed Jan 19 2000 Bernhard Rosenrkänzer +- Use awk, not nawk + +* Tue Jan 18 2000 Bernhard Rosenrkänzer +- 5.6 +- patch 5.6.001 +- remove /usr/bin/vi - if you want vim, type vim + +* Tue Jan 11 2000 Bernhard Rosenkränzer +- 5.6a +- Remove dependency on nawk (introduced by base update) +- some tweaks to make updating easier + +* Tue Nov 9 1999 Bernhard Rosenkränzer +- 5.5 +- fix path to vimrc + +* Tue Jul 27 1999 Michael K. Johnson +- moved from athena to gtk widgets for X version +- removed vim.1 from X11 filelist because X11 depends on vim-common anyway +- fixed rogue dependencies from sample files + +* Tue Jul 27 1999 Jeff Johnson +- update to 5.4. + +* Thu Jul 22 1999 Jeff Johnson +- man page had buildroot pollution (#3629). + +* Thu Mar 25 1999 Preston Brown +- with recent termcap/terminfo fixes, regular vim works in xterm/console +- in color, so vim-color package removed. + +* Tue Mar 23 1999 Erik Troan +- removed "set backupdir=/tmp/vim_backup" from default vimrc + +* Sun Mar 21 1999 Cristian Gafton +- auto rebuild in the new build environment (release 5) + +* Thu Dec 17 1998 Michael Maher +- built pacakge for 6.0 + +* Tue Sep 15 1998 Michael Maher +- removed '--with-tlib=termcap' so that color-vim works + +* Wed Sep 2 1998 Jeff Johnson +- update to 5.3. + +* Mon Aug 10 1998 Jeff Johnson +- merge in Toshio's changes +- color-vim: changed "--disable-p" to "--disable-perlinterp --with-tlib=termcap" +- added minimal rvi/rview and man pages. +- move Obsoletes to same package as executable. + +* Thu Aug 06 1998 Toshio Kuratomi +- Break the package apart similar to the way the netscape package was + broken down to handle navigator or communicator: The vim package is + Obsolete, now there is vim-common with all the common files, and a + package for each binary: vim-minimal (has /bin/vi compiled with no + frills), vim-enhanced (has /usr/bin/vim with extra perl and python + interpreters), and vim-X11 (has /usr/X11R6/bin/gvim compiled with + GUI support.) +- Enable the perl and python interpreters in the gui version (gvim). + +* Tue Jun 30 1998 Michael Maher +- Fixed tutor help. +- cvim package added. Thanks to Stevie Wills for finding this one :-) + +* Thu May 07 1998 Prospector System +- translations modified for de, fr, tr + +* Fri May 01 1998 Donnie Barnes +- added patch to turn off the "vi compatibility" by default. You can + still get it via the -C command line option + +* Thu Apr 23 1998 Donnie Barnes +- removed perl and python interpreters (sorry, but those don't belong + in a /bin/vi and having two vi's seemed like overkill...complain + to suggest@redhat.com if you care) + +* Fri Apr 17 1998 Donnie Barnes +- fixed buildroot bug + +* Sat Apr 11 1998 Donnie Barnes +- updated from 4.6 to 5.1 +- moved to buildroot + +* Sun Nov 09 1997 Donnie Barnes +- fixed missing man page + +* Wed Oct 22 1997 Donnie Barnes +- added wmconfig entry to vim-X11 + +* Mon Oct 20 1997 Donnie Barnes +- upgraded from 4.5 to 4.6 + +* Fri Jun 13 1997 Erik Troan +- built against glibc + +* Tue Mar 25 1997 Michael K. Johnson +- Upgraded to 4.5 +- Added ex symlinks + +* Tue Mar 11 1997 Michael K. Johnson +- Added view symlink. diff --git a/vimrc b/vimrc new file mode 100644 index 00000000..d06ded32 --- /dev/null +++ b/vimrc @@ -0,0 +1,87 @@ +set nocompatible " Use Vim defaults (much better!) +set bs=2 " allow backspacing over everything in insert mode +"set ai " always set autoindenting on +"set backup " keep a backup file +set viminfo='20,\"50 " read/write a .viminfo file, don't store more + " than 50 lines of registers +set history=50 " keep 50 lines of command line history +set ruler " show the cursor position all the time + +" Only do this part when compiled with support for autocommands +if has("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 + autocmd BufReadPost * if line("'\"") | exe "'\"" | endif +endif + +" Don't use Ex mode, use Q for formatting +map Q gq + +" Switch syntax highlighting on, when the terminal has colors +" Also switch on highlighting the last used search pattern. +if &t_Co > 2 || has("gui_running") + syntax on + set hlsearch +endif + +if has("autocmd") + augroup cprog + " Remove all cprog autocommands + au! + + " When starting to edit a file: + " For C and C++ files set formatting of comments and set C-indenting on. + " For other files switch it off. + " Don't change the order, it's important that the line with * comes first. + autocmd FileType * set formatoptions=tcql nocindent comments& + autocmd FileType c,cpp set formatoptions=croql cindent comments=sr:/*,mb:*,el:*/,:// + augroup END + + augroup gzip + " Remove all gzip autocommands + au! + + " Enable editing of gzipped files + " read: set binary mode before reading the file + " uncompress text in buffer after reading + " write: compress file after writing + " append: uncompress file, append, compress file + autocmd BufReadPre,FileReadPre *.gz set bin + autocmd BufReadPost,FileReadPost *.gz let ch_save = &ch|set ch=2 + autocmd BufReadPost,FileReadPost *.gz '[,']!gunzip + autocmd BufReadPost,FileReadPost *.gz set nobin + autocmd BufReadPost,FileReadPost *.gz let &ch = ch_save|unlet ch_save + autocmd BufReadPost,FileReadPost *.gz execute ":doautocmd BufReadPost " . expand("%:r") + + autocmd BufWritePost,FileWritePost *.gz !mv :r + autocmd BufWritePost,FileWritePost *.gz !gzip :r + + autocmd FileAppendPre *.gz !gunzip + autocmd FileAppendPre *.gz !mv :r + autocmd FileAppendPost *.gz !mv :r + autocmd FileAppendPost *.gz !gzip :r + augroup END +endif +if &term=="xterm" + set t_Co=8 + set t_Sb=^[4%dm + set t_Sf=^[3%dm +endif + +" some extra commands for HTML editing +nmap ,mh wbgueyei<ea>pa>bba +nmap ,h1 _i

A

+nmap ,h2 _i

A

+nmap ,h3 _i

A

+nmap ,h4 _i

A

+nmap ,h5 _i
A
+nmap ,h6 _i
A
+nmap ,hb wbieabb +nmap ,he wbieabb +nmap ,hi wbieabb +nmap ,hu wbieabb +nmap ,hs wbieabb +nmap ,ht wbieabb +nmap ,hx wbFf +