auto-import vim-5.7-8tc1 from vim-5.7-8tc1.src.rpm
This commit is contained in:
parent
4d50b557f8
commit
008069969b
58
vim.spec
58
vim.spec
@ -2,12 +2,17 @@ Summary: The VIM editor.
|
|||||||
Name: vim
|
Name: vim
|
||||||
Version: 5.7
|
Version: 5.7
|
||||||
%define vimversion vim57
|
%define vimversion vim57
|
||||||
Release: 8
|
Release: 8tc1
|
||||||
Copyright: freeware
|
Packager: Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
|
||||||
|
Vendor: Red Hat, Inc.
|
||||||
|
Copyright: Charityware
|
||||||
Group: Applications/Editors
|
Group: Applications/Editors
|
||||||
Source0: ftp://ftp.home.vim.org/pub/vim/unix/vim-%{version}-src.tar.gz
|
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
|
Source1: ftp://ftp.home.vim.org/pub/vim/unix/vim-%{version}-rt.tar.gz
|
||||||
|
# By CLE {
|
||||||
Source3: vimrc
|
Source3: vimrc
|
||||||
|
Source4: gvimrc
|
||||||
|
# }
|
||||||
Patch0: vim-4.2-speed_t.patch
|
Patch0: vim-4.2-speed_t.patch
|
||||||
Patch1: vim-5.1-vimnotvi.patch
|
Patch1: vim-5.1-vimnotvi.patch
|
||||||
Patch2: vim-5.6a-paths.patch
|
Patch2: vim-5.6a-paths.patch
|
||||||
@ -17,7 +22,6 @@ Patch5: vim-5.6-destdir.patch
|
|||||||
Patch6: vim-5.7-redhat.patch
|
Patch6: vim-5.7-redhat.patch
|
||||||
Patch7: vim-5.7-docpath.patch
|
Patch7: vim-5.7-docpath.patch
|
||||||
Patch8: vim-5.7-crv.patch
|
Patch8: vim-5.7-crv.patch
|
||||||
Patch9: vim-5.7-security.patch
|
|
||||||
Patch101: 5.7.001
|
Patch101: 5.7.001
|
||||||
Patch102: 5.7.002
|
Patch102: 5.7.002
|
||||||
Patch103: 5.7.003
|
Patch103: 5.7.003
|
||||||
@ -26,19 +30,6 @@ Patch105: 5.7.005
|
|||||||
Patch106: 5.7.006
|
Patch106: 5.7.006
|
||||||
Patch107: 5.7.007
|
Patch107: 5.7.007
|
||||||
Patch108: 5.7.008
|
Patch108: 5.7.008
|
||||||
Patch112: 5.7.012
|
|
||||||
Patch113: 5.7.013
|
|
||||||
Patch114: 5.7.014
|
|
||||||
Patch115: 5.7.015
|
|
||||||
Patch116: 5.7.016
|
|
||||||
Patch117: 5.7.017
|
|
||||||
Patch118: 5.7.018
|
|
||||||
Patch119: 5.7.019
|
|
||||||
Patch120: 5.7.020
|
|
||||||
Patch121: 5.7.021
|
|
||||||
Patch122: 5.7.022
|
|
||||||
Patch123: 5.7.023
|
|
||||||
Patch124: 5.7.024
|
|
||||||
Buildroot: /var/tmp/vim-root
|
Buildroot: /var/tmp/vim-root
|
||||||
Buildrequires: python-devel perl gtk+-devel
|
Buildrequires: python-devel perl gtk+-devel
|
||||||
|
|
||||||
@ -129,7 +120,6 @@ find . -name \*.paths | xargs rm -f
|
|||||||
%patch6 -p1 -b .redhat
|
%patch6 -p1 -b .redhat
|
||||||
%patch7 -p1 -b .docs
|
%patch7 -p1 -b .docs
|
||||||
%patch8 -p1 -b .crv
|
%patch8 -p1 -b .crv
|
||||||
%patch9 -p1 -b .security
|
|
||||||
|
|
||||||
%patch101 -p0 -b .p1
|
%patch101 -p0 -b .p1
|
||||||
%patch102 -p0 -b .p2
|
%patch102 -p0 -b .p2
|
||||||
@ -139,19 +129,6 @@ find . -name \*.paths | xargs rm -f
|
|||||||
%patch106 -p0 -b .p6
|
%patch106 -p0 -b .p6
|
||||||
%patch107 -p0 -b .p7
|
%patch107 -p0 -b .p7
|
||||||
%patch108 -p0 -b .p8
|
%patch108 -p0 -b .p8
|
||||||
%patch112 -p0 -b .p12
|
|
||||||
%patch113 -p0 -b .p13
|
|
||||||
%patch114 -p0 -b .p14
|
|
||||||
%patch115 -p0 -b .p15
|
|
||||||
%patch116 -p0 -b .p16
|
|
||||||
%patch117 -p0 -b .p17
|
|
||||||
%patch118 -p0 -b .p18
|
|
||||||
%patch119 -p0 -b .p19
|
|
||||||
%patch120 -p0 -b .p20
|
|
||||||
%patch121 -p0 -b .p21
|
|
||||||
%patch122 -p0 -b .p22
|
|
||||||
%patch123 -p0 -b .p23
|
|
||||||
%patch124 -p0 -b .p24
|
|
||||||
|
|
||||||
perl -pi -e "s,bin/nawk,bin/awk,g" runtime/tools/mve.awk
|
perl -pi -e "s,bin/nawk,bin/awk,g" runtime/tools/mve.awk
|
||||||
|
|
||||||
@ -160,7 +137,7 @@ cd src
|
|||||||
perl -pi -e "s,\\\$VIMRUNTIME,/usr/share/vim/%{vimversion},g" os_unix.h
|
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
|
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
|
%configure --enable-max-features=yes --enable-pythoninterp --enable-perlinterp --disable-tclinterp --with-x=yes --enable-gui=gtk --exec-prefix=/usr/X11R6 --enable-xim --enable-multibyte --enable-fontset
|
||||||
make if_perl.c
|
make if_perl.c
|
||||||
perl -pi -e "s,#define.*PL_na.*,,g" 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_defgv.*,,g" if_perl.c
|
||||||
@ -225,8 +202,12 @@ Type=Application
|
|||||||
Comment=VI editor for X Windows
|
Comment=VI editor for X Windows
|
||||||
Exec=gvim
|
Exec=gvim
|
||||||
EOF
|
EOF
|
||||||
|
# By CLE {
|
||||||
install -s -m644 %{SOURCE3} ./usr/share/vim/%{vimversion}/macros/
|
install -s -m644 %{SOURCE3} ./usr/share/vim/%{vimversion}/macros/
|
||||||
ln -s vimrc ./usr/share/vim/%{vimversion}/macros/gvimrc
|
install -s -m644 %{SOURCE4} ./usr/share/vim/%{vimversion}/macros/
|
||||||
|
# install -s -m644 %{SOURCE3} ./usr/share/vim/%{vimversion}/macros/
|
||||||
|
# ln -s vimrc ./usr/share/vim/%{vimversion}/macros/gvimrc
|
||||||
|
# }
|
||||||
)
|
)
|
||||||
|
|
||||||
# Dependency cleanups
|
# Dependency cleanups
|
||||||
@ -253,6 +234,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_mandir}/man1/vi.*
|
%{_mandir}/man1/vi.*
|
||||||
%{_mandir}/man1/view.*
|
%{_mandir}/man1/view.*
|
||||||
%{_mandir}/man1/rvi.*
|
%{_mandir}/man1/rvi.*
|
||||||
|
%{_mandir}/man1/gvim.*
|
||||||
%{_mandir}/man1/rview.*
|
%{_mandir}/man1/rview.*
|
||||||
%{_mandir}/man1/xxd.*
|
%{_mandir}/man1/xxd.*
|
||||||
|
|
||||||
@ -277,12 +259,14 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_mandir}/man1/gvim.*
|
%{_mandir}/man1/gvim.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Jan 29 2001 Bernhard Rosenkraenzer <bero@redhat.com>
|
* Tue Dec 5 2000 Andrew Lee <andrew@linux.org.tw>
|
||||||
- Apply bugfix patch #24, fixes security bug #25194
|
- Candyz alreay patch this on CLE 0.9p1
|
||||||
|
- rebuild on RH7
|
||||||
|
|
||||||
|
* Wed Oct 11 2000 Chung-Yen Chang <candyz@cle.linux.org.tw>
|
||||||
|
- configure with --enable-xim --enable-multibyte --enable-fontset
|
||||||
|
- add default vimrc and gvimrc for Chinese
|
||||||
|
|
||||||
* Wed Dec 20 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
||||||
- Fix mktemp() potential DoS (#22594, #22595)
|
|
||||||
- Apply bugfix patches #9 to #19
|
|
||||||
|
|
||||||
* Sun Aug 6 2000 Tim Waugh <twaugh@redhat.com>
|
* Sun Aug 6 2000 Tim Waugh <twaugh@redhat.com>
|
||||||
- xterm doesn't have request version string (#14570)
|
- xterm doesn't have request version string (#14570)
|
||||||
|
104
vimrc
104
vimrc
@ -1,87 +1,37 @@
|
|||||||
set nocompatible " Use Vim defaults (much better!)
|
"" (for Chinese)
|
||||||
set bs=2 " allow backspacing over everything in insert mode
|
"" Set file encoding format as 'taiwan' for Chinese
|
||||||
"set ai " always set autoindenting on
|
"" Only fe is only set when in rxvt which defines COLORTERM
|
||||||
"set backup " keep a backup file
|
"" environment variable
|
||||||
set viminfo='20,\"50 " read/write a .viminfo file, don't store more
|
if exists("$COLORTERM")
|
||||||
" than 50 lines of registers
|
set fe=taiwan
|
||||||
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
|
endif
|
||||||
|
|
||||||
" Don't use Ex mode, use Q for formatting
|
"" (for Chinese)
|
||||||
map Q gq
|
"" Set ruler on, you must set this to ensure
|
||||||
|
"" the Chinese functionality of gvim
|
||||||
|
set ru
|
||||||
|
|
||||||
" Switch syntax highlighting on, when the terminal has colors
|
"" Set visual bell and disable screen flash
|
||||||
" Also switch on highlighting the last used search pattern.
|
:set vb t_vb=
|
||||||
if &t_Co > 2 || has("gui_running")
|
|
||||||
syntax on
|
|
||||||
set hlsearch
|
|
||||||
endif
|
|
||||||
|
|
||||||
if has("autocmd")
|
"" Toggle on/off highlightsearch
|
||||||
augroup cprog
|
map <F8> :set hls!<bar>set hls?<cr>
|
||||||
" Remove all cprog autocommands
|
|
||||||
au!
|
|
||||||
|
|
||||||
" When starting to edit a file:
|
"" Toggle on/off paste mode
|
||||||
" For C and C++ files set formatting of comments and set C-indenting on.
|
map <F9> :set paste!<bar>set paste?<cr>
|
||||||
" 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
|
"" You can toggle the syntax on/off with this command
|
||||||
" Remove all gzip autocommands
|
if has("syntax_items") | syntax off | else | syntax on | endif
|
||||||
au!
|
map <F7> :if has("syntax_items") <Bar> syntax off <Bar> else <Bar> syntax on <Bar> endif <CR>
|
||||||
|
|
||||||
" Enable editing of gzipped files
|
syntax on
|
||||||
" 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 <afile> <afile>:r
|
"" Set non-compatible with vi
|
||||||
autocmd BufWritePost,FileWritePost *.gz !gzip <afile>:r
|
set nocompatible
|
||||||
|
|
||||||
autocmd FileAppendPre *.gz !gunzip <afile>
|
"" Set backup extension
|
||||||
autocmd FileAppendPre *.gz !mv <afile>:r <afile>
|
set backup
|
||||||
autocmd FileAppendPost *.gz !mv <afile> <afile>:r
|
set backupext=.bak
|
||||||
autocmd FileAppendPost *.gz !gzip <afile>: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<<ESC>ea></<ESC>pa><ESC>bba
|
|
||||||
nmap ,h1 _i<h1><ESC>A</h1><ESC>
|
|
||||||
nmap ,h2 _i<h2><ESC>A</h2><ESC>
|
|
||||||
nmap ,h3 _i<h3><ESC>A</h3><ESC>
|
|
||||||
nmap ,h4 _i<h4><ESC>A</h4><ESC>
|
|
||||||
nmap ,h5 _i<h5><ESC>A</h5><ESC>
|
|
||||||
nmap ,h6 _i<h6><ESC>A</h6><ESC>
|
|
||||||
nmap ,hb wbi<b><ESC>ea</b><ESC>bb
|
|
||||||
nmap ,he wbi<em><ESC>ea</em><ESC>bb
|
|
||||||
nmap ,hi wbi<i><ESC>ea</i><ESC>bb
|
|
||||||
nmap ,hu wbi<u><ESC>ea</i><ESC>bb
|
|
||||||
nmap ,hs wbi<strong><ESC>ea</strong><ESC>bb
|
|
||||||
nmap ,ht wbi<tt><ESC>ea</tt><ESC>bb
|
|
||||||
nmap ,hx wbF<df>f<df>
|
|
||||||
|
|
||||||
|
"" Map for parenthesis matching
|
||||||
|
map \ %
|
||||||
|
Loading…
Reference in New Issue
Block a user