OBS User unknown 2006-12-15 16:15:12 +00:00 committed by Git OBS Bridge
commit 9b49030cff
39 changed files with 4914 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

146
ANNOUNCEMENT.vim-7.0 Normal file
View File

@ -0,0 +1,146 @@
Announcing: Vim (Vi IMproved) version 7.0
Author: Bram Moolenaar et al.
Announcement
------------
Vim 7 is ready! After years of development this feature packed editor
is waiting for you.
Since Vim 6.4 many new features have been added. To mention a few:
- Spell checking support for about 50 languages
- Intelligent completion for C, HTML, Ruby, Python, PHP, etc.
- Tab pages, each containing multiple windows
- Undo branches: never accidentally lose text again
- Vim script supports Lists and Dictionaries (similar to Python)
- Vim script profiling
- Improved Unicode support
- Highlighting of cursor line, cursor column and matching braces
- Translated manual pages support.
- Internal grep; works on all platforms, searches compressed files
- Browsing remote directories, zip and tar archives
- Printing multi-byte text
Once you have installed Vim 7.0 you can find details about the changes
since Vim 6.4 with ":help version7".
Credits
-------
A lot of people helped making Vim 7 possible by providing patches,
suggestions, bug reports and proofreading the documentation. You can
find their names with ":help version7". Many thanks to all of them!
Also thanks to Vim sponsors who supported me while working on Vim 7. I
am now going back to a paid job. Please continue sponsoring Vim. The
money now goes to help children in Uganda. The more you help them the
more I will feel obliged to work on Vim. There is a drought right now,
we need to help 200 families with food. http://www.vim.org/sponsor/
Where to get it
---------------
Information about which files to download for what system:
http://www.vim.org/download.php
A list of mirror sites can be found here:
http://www.vim.org/mirrors.php
Downloading through ftp from:
ftp://ftp.vim.org/pub/vim/
Downloading through http from:
http://ftp.vim.org/pub/vim/
Using rsync:
rsync://ftp.nl.vim.org/Vim
Using Subversion:
http://www.vim.org/subversion.php
Anonymous CVS is five week behind and doesn't have Vim 7.0 yet.
An overview of the files:
UNIX:
unix/vim-7.0.tar.bz2 sources + runtime files, bzip2 compressed
VARIOUS:
extra/vim-7.0-extra.tar.gz extra (non-Unix) files
extra/vim-7.0-lang.tar.gz multi-language files
doc/vim70html.zip help files converted to HTML
MS-WINDOWS:
pc/gvim70.exe self-installing, includes all runtime files
pc/vim70rt.zip runtime files
pc/vim70lang.zip files for translated messages and menus
pc/gvim70.zip GUI binary for Windows 95/98/NT/2000/XP
pc/gvim70ole.zip GUI binary with OLE support
pc/gvim70_s.zip GUI binary for Windows 3.1 (untested)
pc/vim70d16.zip 16 bit console version for MS-DOS
pc/vim70d32.zip console version for MS-DOS/Windows 95/98
pc/vim70w32.zip console version for Windows NT/2000/XP
pc/vim70src.zip sources for PC (with CR-LF)
DIFFS TO PREVIOUS BETA
unstable/unix/vim-7.0g-7.0.diff.gz sources + runtime files
unstable/extra/vim-7.0g-7.0-extra.diff.gz extra files
unstable/extra/vim-7.0g-7.0-lang.diff.gz multi-language files
SPELL FILES
ftp://ftp.vim.org/pub/vim/runtime/spell/
http://ftp.vim.org/pub/vim/runtime/spell/
You should be able to do ":set spellang=xx" and Vim will offer you to
download spell files for "xx".
Mailing lists
-------------
For user questions you can turn to the Vim mailing list. There are a
lot of tips, scripts and solutions. You can ask your Vim questions, but
only if you subscribe. See http://www.vim.org/maillist.php#vim
If you want to help Vim development or get the latest patches, subscribe
to the vim-dev mailing list. See http://www.vim.org/maillist.php#vim-dev
Subject specific lists:
Multi-byte issues: http://www.vim.org/maillist.php#vim-multibyte
Macintosh issues: http://www.vim.org/maillist.php#vim-mac
Before you ask a question you should search the archives, someone may
already have given the answer.
Reporting bugs
--------------
Send them to <bugs@v...>. Please describe the problem precisely.
All the time spent on answering mail is subtracted from the time that is
spent on improving Vim! Always give a reproducible example and try to
find out which settings or other things influence the appearance of the
bug. Try starting without your own vimrc file: "vim -u NONE". Try
different machines if possible. See ":help bugs" in Vim. Send me a
patch if you can!
If something needs discussing with other developers, send a message to the
vim-dev mailing list. You need to subscribe first.
Happy Vimming!
--
Well, you come from nothing, you go back to nothing... What have you
lost? Nothing!
-- Monty Python: The life of Brian
/// Bram Moolenaar -- Bram@M... -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

24
README.Japanese-XIM Normal file
View File

@ -0,0 +1,24 @@
To select the style of XIM Input the following command line arguments,
which are handled by GTK internally, are available:
--xim-preedit [none|nothing|area|position|callbacks]
--xim-status [none|nothing|area|callbacks]
To use OnTheSpot input style, start gvim like
~$ gvim [--xim-preedit callbacks] [--xim-status callbacks]
This is also the default, which you will get without any command line arguments.
To use OverTheSpot input style, start gvim like
~$ gvim --xim-preedit position [--xim-status callbacks]
OnTheSpot input is still buggy and does not yet work right for Japanese,
therefore it is recommended to use OverTheSpot input style for Japanese.
(For Korean, OnTheSpot input style works well).
Fri Jan 26 17:57:39 2001 Mike Fabian <mfabian@suse.de>

11
README.SuSE Normal file
View File

@ -0,0 +1,11 @@
README.SuSE for package 'gvim'.
This package includes only a new binary with GUI (3D-Athena-Widgets).
The normal package 'vim' is needed!
Start: /usr/X11R6/bin/gvim
Copy and modify some example gvimrc from /usr/share/doc/packages/gvim
to ~/.gvimrc if needed.

145
apparmor.vim Normal file
View File

@ -0,0 +1,145 @@
" $Id$
"
" ----------------------------------------------------------------------
" Copyright (c) 2005 Novell, Inc. All Rights Reserved.
" Copyright (c) 2006 Christian Boltz. All Rights Reserved.
"
" This program is free software; you can redistribute it and/or
" modify it under the terms of version 2 of the GNU General Public
" License as published by the Free Software Foundation.
"
" This program is distributed in the hope that it will be useful,
" but WITHOUT ANY WARRANTY; without even the implied warranty of
" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
" GNU General Public License for more details.
"
" You should have received a copy of the GNU General Public License
" along with this program; if not, contact Novell, Inc.
"
" To contact Novell about this file by physical or electronic mail,
" you may find current contact information at www.novell.com.
"
" To contact Christian Boltz about this file by physical or electronic
" mail, you may find current contact information at www.cboltz.de.
" ----------------------------------------------------------------------
"
" stick this file into ~/.vim/syntax/ and add these commands into your .vimrc
" to have vim automagically use this syntax file for these directories:
"
" autocmd BufNewFile,BufRead /etc/apparmor.d/* set syntax=apparmor
" autocmd BufNewFile,BufRead /etc/apparmor/profiles/* set syntax=apparmor
" color setup...
" adjust colors according to the background
" switching colors depending on the background color doesn't work
" unfortunately, so we use colors that work with light and dark background.
" Patches welcome ;-)
"if &background == "light"
" light background
hi sdProfileName ctermfg=lightblue
hi sdHatName ctermfg=darkblue
hi sdGlob ctermfg=darkmagenta
hi sdEntryWriteExec ctermfg=black ctermbg=yellow
hi sdEntryUX ctermfg=darkred cterm=underline
hi sdEntryCUX ctermfg=darkred
hi sdEntryIX ctermfg=darkcyan
hi sdEntryM ctermfg=darkcyan
hi sdEntryPX ctermfg=darkgreen cterm=underline
hi sdEntryCPX ctermfg=darkgreen
hi sdEntryW ctermfg=darkyellow
hi sdCap ctermfg=lightblue
hi sdCapKey cterm=underline ctermfg=lightblue
hi def link sdEntryR Normal
hi def link sdFlags Normal
hi sdCapDanger ctermfg=darkred
"else
" dark background
" hi sdProfileName ctermfg=white
" hi sdHatName ctermfg=white
" hi sdGlob ctermfg=magenta
" hi sdEntryWriteExec ctermfg=black ctermbg=yellow
" hi sdEntryUX ctermfg=red cterm=underline
" hi sdEntryCUX ctermfg=red
" hi sdEntryIX ctermfg=cyan
" hi sdEntryM ctermfg=cyan
" hi sdEntryPX ctermfg=green cterm=underline
" hi sdEntryCPX ctermfg=green
" hi sdEntryW ctermfg=yellow
" hi sdCap ctermfg=lightblue
" hi sdCapKey cterm=underline ctermfg=lightblue
" hi def link sdEntryR Normal
" hi def link sdFlags Normal
" hi sdCapDanger ctermfg=red
"endif
hi def link sdInclude Include
high def link sdComment Comment
high def link sdFlagKey TODO
high def link sdError ErrorMsg
" always sync from the start. should be relatively quick since we don't have
" that many rules and profiles shouldn't be _extremely_ large...
syn sync fromstart
syn keyword sdCapKey chown dac_override dac_read_search fowner fsetid kill setgid setuid setpcap linux_immutable net_bind_service net_broadcast net_admin net_raw ipc_lock ipc_owner sys_module sys_rawio sys_chroot sys_ptrace sys_pacct sys_boot sys_nice sys_resource sys_time sys_tty_config mknod lease
syn keyword sdCapDanger sys_admin
syn keyword sdFlagKey complain audit debug
" highlight some invalid syntax
"syn match sdError /\v.+$/ " causes false positives on '}' :-(
syn match sdError /{/ contained
syn match sdError /}/
syn match sdError /^.*$/ "highlight all non-valid lines as error
syn match sdGlob /\v\?|\*|\{.*,.*\}|[[^\]]\+\]|\@\{[a-zA-Z]*\}/
syn cluster sdEntry contains=sdEntryWriteExec,sdEntryR,sdEntryW,sdEntryIX,sdEntryPX,sdEntryCPX,sdEntryUX,sdEntryCUX,sdEntryM,sdCap
" write + exec/mmap - danger!
syn match sdEntryWriteExec /\v^\s*(\/|\@\{\S*\})\S*\s+(l|r|w|m|[iuUpP]x)+\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdGlob nextgroup=@sdEntry,sdComment,sdError,sdInclude
" unconstrained entry, flag the line red
syn match sdEntryUX /\v^\s*(\/|\@\{\S*\})\S*\s+(r|m|ux)+\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdGlob nextgroup=@sdEntry,sdComment,sdError,sdInclude
" Ux - like ux + clean environment
syn match sdEntryCUX /\v^\s*(\/|\@\{\S*\})\S*\s+(r|m|Ux)+\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdGlob nextgroup=@sdEntry,sdComment,sdError,sdInclude
" standard exec entry, flag the line blue
syn match sdEntryPX /\v^\s*(\/|\@\{\S*\})\S*\s+(r|m|px)+\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdGlob nextgroup=@sdEntry,sdComment,sdError,sdInclude
" Px - like px + clean environment
syn match sdEntryCPX /\v^\s*(\/|\@\{\S*\})\S*\s+(r|m|Px)+\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdGlob nextgroup=@sdEntry,sdComment,sdError,sdInclude
" standard exec entry, flag the line green
syn match sdEntryIX /\v^\s*(\/|\@\{\S*\})\S*\s+(r|m|ix)+\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdGlob nextgroup=@sdEntry,sdComment,sdError,sdInclude
" mmap with PROT_EXEC
syn match sdEntryM /\v^\s*(\/|\@\{\S*\})\S*\s+(r|m)+\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdGlob nextgroup=@sdEntry,sdComment,sdError,sdInclude
" if we've got u or i without x, it's an error
syn match sdError /\v^\s*(\/|\@\{\S*\})\S*\s+(l|r|w|u|p|i)+\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdGlob nextgroup=@sdEntry,sdComment,sdError,sdInclude
" write entry, flag the line yellow
syn match sdEntryW /\v^\s*(\/|\@\{\S*\})\S*\s+(l|r|w)+\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdGlob nextgroup=@sdEntry,sdComment,sdError,sdInclude
" Capability line
syn match sdCap /\v^\s*capability\s+\S+\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdCapKey,sdCapDanger nextgroup=@sdEntry,sdComment,sdError,sdInclude
" read entry, no highlighting
syn match sdEntryR /\v^\s*(\/|\@\{\S*\})\S*\s+[rl]+\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdGlob nextgroup=@sdEntry,sdComment,sdError
syn match sdProfileName /\v^\/\S+\s+(flags\=\(\S+\)\s+)=\{/ contains=sdProfileStart,sdHatName,sdFlags
syn match sdProfileStart /{/ contained
syn match sdProfileEnd /}/ " contained
syn match sdHatName /\v^\s+\^\S+\s+(flags\=\(\S+\)\s+)=\{/ contains=sdProfileStart,sdFlags
syn match sdHatStart /{/ contained
syn match sdHatEnd /}/ contained
syn match sdFlags /\vflags\=\(\S+\)/ contained contains=sdFlagKey
syn match sdComment /\s*#.*$/
syn match sdInclude /\s*#include.*$/
" basic profile block...
" \s+ does not work in end=, therefore using \s\s*
syn region Normal start=/\v^\s*\^\S+\s+(flags\=\(\S+\)\s+)=\{/ matchgroup=sdProfileEnd end=/^}\s*$/ contains=sdProfileName,Hat,@sdEntry,sdComment,sdError,sdInclude
syn region Hat start=/\v^\s+\^\S+\s+(flags\=\(\S+\)\s+)=\{/ matchgroup=sdHatEnd end=/^\s\s*}\s*$/ contained contains=sdHatName,@sdEntry,sdComment,sdError,sdInclude

37
changes.vim Normal file
View File

@ -0,0 +1,37 @@
" Vim syntax file
" Filename: changes.vim
" Language: SuSE package changes
" Maintainer: Michal Svec <msvec@suse.cz>
" Last change: 20.8.2003
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
" Keywords
syn keyword ChangesArch i386 i486 i586 i686 athlon ia64 xa86_64
syn keyword ChangesArch I386 I486 I586 I686 ATHLON IA64 XA86_64
syn keyword ChangesArch ppc axp mips armv4l s390 s390x S/390 s/390
syn keyword ChangesArch PPC AXP MIPS ARMV4L S390 S390x S390X
syn keyword sparc sparc64 Sparc Sparc64 SPARC SPARC64 noarch NOARCH
" Highlights
syn match ChangesDate "^[A-Z][a-z][a-z] [A-Z][a-z][a-z] [ 0-9][0-9] [0-9:]\{8\} [A-Z]\+ [0-9]\+"
syn match ChangesDate "^[A-Z][a-z][a-z] [A-Z][a-z][a-z] [ 0-9][0-9] [0-9:]\{8\} [0-9]\+"
syn match ChangesMail " - \<[a-zA-Z\.]\+@[a-zA-Z\.]\+\>$"
syn match ChangesMailText "\<[a-zA-Z\.]\+@[a-zA-Z\.]\+\>"
syn match ChangesSeparator "^-\{40,78\}$"
syn match ChangesBug "#[0-9]\+\>"
" Colors
hi ChangesArch ctermfg=blue ctermbg=NONE
hi ChangesDate ctermfg=darkgreen ctermbg=NONE
hi ChangesMail ctermfg=darkred ctermbg=NONE
hi ChangesMailText ctermfg=darkred ctermbg=NONE
hi ChangesSeparator ctermfg=darkgreen ctermbg=NONE
hi ChangesBug ctermfg=red ctermbg=NONE
" Syntax name
let b:current_syntax = "changes"

3
gvim.png Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:931f8254408e8981f89e6d75bbcb153d73755e4f7635414d7d811bd358ceb476
size 262

48
ppd.vim Normal file
View File

@ -0,0 +1,48 @@
" Vim syntax file
" Language: PPD (PostScript printer description) file
" Maintainer: Bjoern Jacke <bjacke@suse.de>
" Last Change: 2001-10-06
" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
syn match ppdComment "^\*%.*"
syn match ppdDef "\*[a-zA-Z0-9]\+"
syn match ppdDefine "\*[a-zA-Z0-9\-_]\+:"
syn match ppdUI "\*[a-zA-Z]*\(Open\|Close\)UI"
syn match ppdUIGroup "\*[a-zA-Z]*\(Open\|Close\)Group"
syn match ppdGUIText "/.*:"
syn match ppdContraints "^*UIConstraints:"
" Define the default highlighting.
" For version 5.7 and earlier: only when not done already
" For version 5.8 and later: only when an item doesn't have highlighting yet
if version >= 508 || !exists("did_ahdl_syn_inits")
if version < 508
let did_ahdl_syn_inits = 1
command -nargs=+ HiLink hi link <args>
else
command -nargs=+ HiLink hi def link <args>
endif
HiLink ppdComment Comment
HiLink ppdDefine Statement
HiLink ppdUI Function
HiLink ppdUIGroup Function
HiLink ppdDef String
HiLink ppdGUIText Type
HiLink ppdContraints Special
delcommand HiLink
endif
let b:current_syntax = "ppd"
" vim: ts=8

0
ready Normal file
View File

168
suse.gvimrc Normal file
View File

@ -0,0 +1,168 @@
"
" /etc/gvimrc
"
" from original source copied and modified by Klaus Franken
" Version: 21.1.97
" other settings:
:se guipty
:se guioptions=amr
" Menues:
" copied and modified from:
" *vim_menu.txt* For Vim version 4.5. Last modification: 1996 Oct 12
"
" These menu commands should recreate the default Vim menus.
" You can use this as a start for your own set of menus.
" The colons at the start of each line are just to indicate these are colon
" commands, they could be omitted.
" If the <Esc> and <CR> string appear literally in the output of ":menu", you
" need to remove the '<' flag from 'cpoptions' |'cpoptions'|
" First remove any menus that are currently present
:unmenu *
:unmenu! *
" Help menu
" Note that the help commands use <Esc> to leave Insert/Visual/Command-line
" mode
:nnoremenu Help.Overview\ \ <F1> :help<CR>
:vnoremenu Help.Overview\ \ <F1> <Esc>:help<CR>
:noremenu! Help.Overview\ \ <F1> <Esc>:help<CR>
:nnoremenu Help.How\ to\.\.\. :help how_to<CR>
:vnoremenu Help.How\ to\.\.\. <Esc>:help how_to<CR>
:noremenu! Help.How\ to\.\.\. <Esc>:help how_to<CR>
:nnoremenu Help.GUI :help gui<CR>
:vnoremenu Help.GUI <Esc>:help gui<CR>
:noremenu! Help.GUI <Esc>:help gui<CR>
:nnoremenu Help.Version :version<CR>
:vnoremenu Help.Version <Esc>:version<CR>
:noremenu! Help.Version <Esc>:version<CR>
:nnoremenu Help.Credits :help credits<CR>
:vnoremenu Help.Credits <Esc>:help credits<CR>
:noremenu! Help.Credits <Esc>:help credits<CR>
:nnoremenu Help.Copying :help uganda<CR>
:vnoremenu Help.Copying <Esc>:help uganda<CR>
:noremenu! Help.Copying <Esc>:help uganda<CR>
" File menu
:nnoremenu File.Save\ \ \ \ \ \ \ :w :w<CR>
:inoremenu File.Save\ \ \ \ \ \ \ :w <C-O>:w<CR>
:nnoremenu File.Close\ \ \ \ \ \ :q :q<CR>
:vnoremenu File.Close\ \ \ \ \ \ :q <Esc>:q<CR>
:noremenu! File.Close\ \ \ \ \ \ :q <Esc>:q<CR>
:nnoremenu File.Quit\ \ \ \ \ \ \ :qa :qa<CR>
:vnoremenu File.Quit\ \ \ \ \ \ \ :qa <Esc>:qa<CR>
:noremenu! File.Quit\ \ \ \ \ \ \ :qa <Esc>:qa<CR>
:nnoremenu File.Save-Quit\ \ :wqa :wqa<CR>
:vnoremenu File.Save-Quit\ \ :wqa <Esc>:wqa<CR>
:noremenu! File.Save-Quit\ \ :wqa <Esc>:wqa<CR>
" Edit menu
:nnoremenu Edit.Undo u
:nnoremenu Edit.Redo <C-R>
:vnoremenu Edit.Cut x
:vnoremenu Edit.Copy y
:nnoremenu Edit.Put\ Before [p
:inoremenu Edit.Put\ Before <C-O>[p
:nnoremenu Edit.Put\ After ]p
:inoremenu Edit.Put\ After <C-O>]p
:nnoremenu Edit.Paste i<C-R>*<Esc>
:noremenu! Edit.Paste <C-R>*
" new kfr@suse.de
" MenuNamen:
" :nnoremenu Normal
" :vnoremenu Visual
" :noremenu! Input?
:nnoremenu File.Reload\ \ \ \ \ :e! :e!<CR>
:vnoremenu File.Reload\ \ \ \ \ :e! <Esc>:e!<CR>
:noremenu! File.Reload\ \ \ \ \ :e! <Esc>:e!<CR>
:nnoremenu File.Quit\ All!\ \ :qa! :qa!<CR>
:nnoremenu Settings.Show :se<CR>
:nnoremenu Settings.Autoindent.off\ F7 :se noautoindent<CR>
:nnoremenu Settings.Autoindent.on\ \ F8 :se autoindent<CR>
:nnoremenu Settings.Tabs.Expand\ on :se expandtab<CR>
:nnoremenu Settings.Tabs.Expand\ off :se noexpandtab<CR>
:nnoremenu Settings.Tabs.2 :se tabstop=2<CR>:se shiftwidth=2<CR>
:nnoremenu Settings.Tabs.4 :se tabstop=4<CR>:se shiftwidth=4<CR>
:nnoremenu Settings.Tabs.8 :se tabstop=8<CR>:se shiftwidth=8<CR>
:nnoremenu Settings.Mouse.All :se mouse=a<CR>
:nnoremenu Settings.Mouse.Visual :se mouse=v<CR>
:nnoremenu Settings.Mouse.Insert :se mouse=i<CR>
:nnoremenu Settings.Mouse.Command-line :se mouse=c<CR>
:nnoremenu Settings.Textwidth.off :se textwidth=0<CR>
:nnoremenu Settings.Textwidth.70 :se textwidth=70<CR>
:nnoremenu Settings.Textwidth.75 :se textwidth=75<CR>
:nnoremenu Settings.Textwidth.80 :se textwidth=80<CR>
:nnoremenu Settings.Wrap.on :se wrap<CR>
:nnoremenu Settings.Wrap.off :se nowrap<CR>
:nnoremenu Settings.Numbers.on :se nu<CR>
:nnoremenu Settings.Numbers.off :se nonu<CR>
:nnoremenu Settings.Search\ case-sensitiv.on :se ignorecase<CR>
:nnoremenu Settings.Search\ case-sensitiv.off :se noignorecase<CR>
:nnoremenu Settings.Scrollbar.Right :se guioptions=mr<CR>
:nnoremenu Settings.Scrollbar.Right+Bottom :se guioptions=mrb<CR>
:nnoremenu Settings.Scrollbar.Left :se guioptions=ml<CR>
:nnoremenu Settings.Scrollbar.Left+Bottom :se guioptions=mlb<CR>
:nnoremenu Settings.RightLeft.Show\ -> :se norightleft<CR>
:nnoremenu Settings.RightLeft.Show\ <- :se rightleft<CR>
:nnoremenu Settings.RightLeft.Input\ -> :se norevins<CR>
:nnoremenu Settings.RightLeft.Input\ <- :se revins<CR>
:nnoremenu Settings.RightLeft.Hebrew\ mapping :se hkmap<CR>
:nnoremenu Settings.RightLeft.Normal\ mapping :se nohkmap<CR>
:nnoremenu Window.Buffer\ Next :bnext<CR>
:nnoremenu Window.Buffer\ Prev :bNext<CR>
:nnoremenu Window.Buffer\ All :ball<CR>
:nnoremenu Window.Zoom :only<CR>
:nnoremenu Window.Show\ Buffers :buffers<CR>
:nnoremenu Window.Go\ Buffer.1 :buf1<CR>
:nnoremenu Window.Go\ Buffer.2 :buf2<CR>
:nnoremenu Window.Go\ Buffer.3 :buf3<CR>
:nnoremenu Window.Go\ Buffer.4 :buf4<CR>
:nnoremenu Window.Go\ Buffer.5 :buf5<CR>
:nnoremenu Window.New :new<CR>
:nnoremenu Window.Split :split<CR>
:nnoremenu Window.Close :close<CR>
:nnoremenu Input.Return <CR>
:nnoremenu Help.40 :help vim_40.txt<CR>
:nnoremenu Help.ami :help vim_ami.txt<CR>
:nnoremenu Help.arch :help vim_arch.txt<CR>
:nnoremenu Help.diff :help vim_diff.txt<CR>
:nnoremenu Help.digr :help vim_digr.txt<CR>
:nnoremenu Help.dos :help vim_dos.txt<CR>
:nnoremenu Help.gui :help vim_gui.txt<CR>
:nnoremenu Help.help :help vim_help.txt<CR>
:nnoremenu Help.idx :help vim_idx.txt<CR>
:nnoremenu Help.kcc :help vim_kcc.txt<CR>
:nnoremenu Help.mac :help vim_mac.txt<CR>
:nnoremenu Help.menu :help vim_menu.txt<CR>
:nnoremenu Help.mint :help vim_mint.txt<CR>
:nnoremenu Help.os2 :help vim_os2.txt<CR>
:nnoremenu Help.ref :help vim_ref.txt<CR>
:nnoremenu Help.rlh :help vim_rlh.txt<CR>
:nnoremenu Help.tags :help vim_tags<CR>
:nnoremenu Help.tips :help vim_tips.txt<CR>
:nnoremenu Help.unix :help vim_unix.txt<CR>
:nnoremenu Help.w32 :help vim_w32.txt<CR>
:nnoremenu Help.win :help vim_win.txt<CR>

227
suse.vimrc Normal file
View File

@ -0,0 +1,227 @@
" /etc/vimrc (configuration file for vim only)
" author: Klaus Franken <kfr@suse.de>
" author: Werner Fink <werner@suse.de>
" author: Florian La Roche <florian@suse.de>
" version: 00/01/20
" commented lines start with `"'
" enable syntax highlighting
" syntax on
" automatically indent lines (default)
" set noautoindent
" select case-insenitiv search (not default)
" set ignorecase
" show cursor line and column in the status line
set ruler
" show matching brackets
set showmatch
" display mode INSERT/REPLACE/...
set showmode
" changes special characters in search patterns (default)
" set magic
" Required to be able to use keypad keys and map missed escape sequences
set esckeys
" get easier to use and more user friendly vim defaults
" CAUTION: This option breaks some vi compatibility.
" Switch it off if you prefer real vi compatibility
set nocompatible
" Complete longest common string, then each full match
" enable this for bash compatible behaviour
" set wildmode=longest,full
" Try to get the correct main terminal type
if &term =~ "xterm"
let myterm = "xterm"
else
let myterm = &term
endif
let myterm = substitute(myterm, "cons[0-9][0-9].*$", "linux", "")
let myterm = substitute(myterm, "vt1[0-9][0-9].*$", "vt100", "")
let myterm = substitute(myterm, "vt2[0-9][0-9].*$", "vt220", "")
let myterm = substitute(myterm, "\\([^-]*\\)[_-].*$", "\\1", "")
" Here we define the keys of the NumLock in keyboard transmit mode of xterm
" which misses or hasn't activated Alt/NumLock Modifiers. Often not defined
" within termcap/terminfo and we should map the character printed on the keys.
if myterm == "xterm" || myterm == "kvt" || myterm == "gnome"
" keys in insert/command mode.
map! <ESC>Oo :
map! <ESC>Oj *
map! <ESC>Om -
map! <ESC>Ok +
map! <ESC>Ol ,
map! <ESC>OM
map! <ESC>Ow 7
map! <ESC>Ox 8
map! <ESC>Oy 9
map! <ESC>Ot 4
map! <ESC>Ou 5
map! <ESC>Ov 6
map! <ESC>Oq 1
map! <ESC>Or 2
map! <ESC>Os 3
map! <ESC>Op 0
map! <ESC>On .
" keys in normal mode
map <ESC>Oo :
map <ESC>Oj *
map <ESC>Om -
map <ESC>Ok +
map <ESC>Ol ,
map <ESC>OM
map <ESC>Ow 7
map <ESC>Ox 8
map <ESC>Oy 9
map <ESC>Ot 4
map <ESC>Ou 5
map <ESC>Ov 6
map <ESC>Oq 1
map <ESC>Or 2
map <ESC>Os 3
map <ESC>Op 0
map <ESC>On .
endif
" xterm but without activated keyboard transmit mode
" and therefore not defined in termcap/terminfo.
if myterm == "xterm" || myterm == "kvt" || myterm == "gnome"
" keys in insert/command mode.
map! <Esc>[H <Home>
map! <Esc>[F <End>
" Home/End: older xterms do not fit termcap/terminfo.
map! <Esc>[1~ <Home>
map! <Esc>[4~ <End>
" Up/Down/Right/Left
map! <Esc>[A <Up>
map! <Esc>[B <Down>
map! <Esc>[C <Right>
map! <Esc>[D <Left>
" KP_5 (NumLock off)
map! <Esc>[E <Insert>
" PageUp/PageDown
map <ESC>[5~ <PageUp>
map <ESC>[6~ <PageDown>
map <ESC>[5;2~ <PageUp>
map <ESC>[6;2~ <PageDown>
map <ESC>[5;5~ <PageUp>
map <ESC>[6;5~ <PageDown>
" keys in normal mode
map <ESC>[H 0
map <ESC>[F $
" Home/End: older xterms do not fit termcap/terminfo.
map <ESC>[1~ 0
map <ESC>[4~ $
" Up/Down/Right/Left
map <ESC>[A k
map <ESC>[B j
map <ESC>[C l
map <ESC>[D h
" KP_5 (NumLock off)
map <ESC>[E i
" PageUp/PageDown
map <ESC>[5~ 
map <ESC>[6~ 
map <ESC>[5;2~ 
map <ESC>[6;2~ 
map <ESC>[5;5~ 
map <ESC>[6;5~ 
endif
" xterm/kvt but with activated keyboard transmit mode.
" Sometimes not or wrong defined within termcap/terminfo.
if myterm == "xterm" || myterm == "kvt" || myterm == "gnome"
" keys in insert/command mode.
map! <Esc>OH <Home>
map! <Esc>OF <End>
map! <ESC>O2H <Home>
map! <ESC>O2F <End>
map! <ESC>O5H <Home>
map! <ESC>O5F <End>
" Cursor keys which works mostly
" map! <Esc>OA <Up>
" map! <Esc>OB <Down>
" map! <Esc>OC <Right>
" map! <Esc>OD <Left>
map! <Esc>[2;2~ <Insert>
map! <Esc>[3;2~ <Delete>
map! <Esc>[2;5~ <Insert>
map! <Esc>[3;5~ <Delete>
map! <Esc>O2A <PageUp>
map! <Esc>O2B <PageDown>
map! <Esc>O2C <S-Right>
map! <Esc>O2D <S-Left>
map! <Esc>O5A <PageUp>
map! <Esc>O5B <PageDown>
map! <Esc>O5C <S-Right>
map! <Esc>O5D <S-Left>
" KP_5 (NumLock off)
map! <Esc>OE <Insert>
" keys in normal mode
map <ESC>OH 0
map <ESC>OF $
map <ESC>O2H 0
map <ESC>O2F $
map <ESC>O5H 0
map <ESC>O5F $
" Cursor keys which works mostly
" map <ESC>OA k
" map <ESC>OB j
" map <ESC>OD h
" map <ESC>OC l
map <Esc>[2;2~ i
map <Esc>[3;2~ x
map <Esc>[2;5~ i
map <Esc>[3;5~ x
map <ESC>O2A ^B
map <ESC>O2B ^F
map <ESC>O2D b
map <ESC>O2C w
map <ESC>O5A ^B
map <ESC>O5B ^F
map <ESC>O5D b
map <ESC>O5C w
" KP_5 (NumLock off)
map <ESC>OE i
endif
if myterm == "linux"
" keys in insert/command mode.
map! <Esc>[G <Insert>
" KP_5 (NumLock off)
" keys in normal mode
" KP_5 (NumLock off)
map <ESC>[G i
endif
" This escape sequence is the well known ANSI sequence for
" Remove Character Under The Cursor (RCUTC[tm])
map! <Esc>[3~ <Delete>
map <ESC>[3~ x
" Only do this part when compiled with support for autocommands.
if has("autocmd")
" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid or when inside an event handler
" (happens when dropping a file on gvim).
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g`\"" |
\ endif
endif " has("autocmd")
" Changed default required by SuSE security team--be aware if enabling this
" that it potentially can open for malicious users to do harmful things.
set modelines=0
" get easier to use and more user friendly vim defaults
" /etc/vimrc ends here

15
vim-7.0-apparmor.patch Normal file
View File

@ -0,0 +1,15 @@
Index: vim70/runtime/filetype.vim
===================================================================
--- vim70.orig/runtime/filetype.vim
+++ vim70/runtime/filetype.vim
@@ -105,6 +105,10 @@ au BufNewFile,BufRead proftpd.conf* cal
au BufNewFile,BufRead .htaccess setf apache
au BufNewFile,BufRead httpd.conf*,srm.conf*,access.conf*,apache.conf*,apache2.conf*,/etc/apache2/*.conf* call s:StarSetf('apache')
+" AppArmor
+au BufNewFile,BufRead */etc/apparmor.d/* setf apparmor
+au BufNewFile,BufRead */etc/apparmor/profiles/* setf apparmor
+
" XA65 MOS6510 cross assembler
au BufNewFile,BufRead *.a65 setf a65

3
vim-7.0-extra.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:83ac6e26ca0208b4b1af0111e6339b8961fe920c064414080fc673ef8292bd52
size 642123

View File

@ -0,0 +1,49 @@
--- vim70/runtime/filetype.vim.orig 2006-07-11 15:39:06.000000000 +0200
+++ vim70/runtime/filetype.vim 2006-07-11 16:16:54.000000000 +0200
@@ -2187,3 +2187,7 @@
" Restore 'cpoptions'
let &cpo = s:cpo_save
unlet s:cpo_save
+
+" FreeMarker templates
+au BufNewFile,BufRead *.ftl setf ftl
+
--- vim70/runtime/syntax/ftl.vim.orig 1970-01-01 01:00:00.000000000 +0100
+++ vim70/runtime/syntax/ftl.vim 2006-07-11 16:16:54.000000000 +0200
@@ -0,0 +1,36 @@
+" Vim syntax file
+" Language: FreeMarker Template Language (FTL)
+" Maintainer: Stephan Müller <stephan@chaquotay.net>
+" Last Change: 2003 Oct 7
+
+syn case match
+
+" directives and interpolations
+syn region ftlStartDirective start=+<#+ end=+>+ contains=ftlKeyword, ftlDirective, ftlString, ftlComment
+syn region ftlEndDirective start=+</#+ end=+>+ contains=ftlDirective
+syn region ftlStartUserDirective start=+<@+ end=+>+ contains=ftlString, ftlComment
+syn region ftlEndUserDirective start=+</@+ end=+>+
+syn region ftlInterpolation start=+${+ end=+}+
+syn region ftlInterpolation2 start=+#{+ end=+}+
+syn region ftlString contained start=+"+ end=+"+
+syn region ftlComment start=+<#--+ end=+-->+
+
+" keywords
+syn keyword ftlDirective contained list if else macro import include switch case break
+syn keyword ftlDirective contained assign local global nested recurse fallback visit
+syn keyword ftlDirective contained function return t rt lt nt ftl
+syn keyword ftlKeyword contained as in using
+
+" highlighting
+highlight link ftlKeyword Statement
+highlight link ftlDirective Statement
+highlight link ftlStartDirective Function
+highlight link ftlEndDirective Function
+highlight link ftlStartUserDirective Function
+highlight link ftlEndUserDirective Function
+highlight link ftlInterpolation Constant
+highlight link ftlInterpolation2 Constant
+highlight link ftlString Constant
+highlight link ftlComment Comment
+
+

View File

@ -0,0 +1,27 @@
--- vim70/runtime/filetype.vim.orig 2006-05-02 20:15:45.000000000 +0200
+++ vim70/runtime/filetype.vim 2006-07-11 14:36:15.000000000 +0200
@@ -1640,7 +1640,7 @@
au BufNewFile,BufRead *.hog,snort.conf,vision.conf,*.rules setf hog
" Spec (Linux RPM)
-au BufNewFile,BufRead *.spec setf spec
+au BufNewFile,BufRead *.spec,*.spec.in setf spec
" Speedup (AspenTech plant simulator)
au BufNewFile,BufRead *.speedup,*.spdata,*.spd setf spup
@@ -2019,6 +2019,15 @@
" zsql (zope sql method)
au BufNewFile,BufRead *.zsql call s:SQL()
+" YCP
+au BufNewFile,BufRead *.ycp,*.scr,*.yh set ft=ycp
+
+" changes
+au BufNewFile,BufRead *.changes set ft=changes
+
+" y2cc
+au BufNewFile,BufRead *.y2cc set ft=dosini
+
" Z80 assembler asz80
au BufNewFile,BufRead *.z8a setf z8a

View File

@ -0,0 +1,11 @@
--- runtime/syntax/fstab.vim
+++ runtime/syntax/fstab.vim
@@ -25,7 +25,7 @@
syn cluster fsDeviceCluster contains=fsOperator,fsDeviceKeyword,fsDeviceError
syn match fsDeviceError /\%([^a-zA-Z0-9_\/#@:]\|^\w\{-}\ze\W\)/ contained
syn keyword fsDeviceKeyword contained none proc linproc tmpfs devpts sysfs usbfs
-syn keyword fsDeviceKeyword contained LABEL nextgroup=fsDeviceLabel
+syn keyword fsDeviceKeyword contained LABEL UUID nextgroup=fsDeviceLabel
syn match fsDeviceKeyword /[a-z0-9_]*fs/ contained
syn match fsDeviceLabel contained /=[^ \t]\+/hs=s+1 contains=fsOperator

View File

@ -0,0 +1,11 @@
--- vim70/src/eval.c.orig 2006-07-11 12:02:34.000000000 +0200
+++ vim70/src/eval.c 2006-07-11 12:03:32.000000000 +0200
@@ -19670,7 +19670,7 @@
* some compiler that checks the destination size. */
v = &fc.fixvar[fixvar_idx++].var;
name = v->di_key;
- STRCPY(name, "self");
+ // STRCPY(name, "self");
v->di_flags = DI_FLAGS_RO + DI_FLAGS_FIX;
hash_add(&fc.l_vars.dv_hashtab, DI2HIKEY(v));
v->di_tv.v_type = VAR_DICT;

11
vim-7.0-grub.patch Normal file
View File

@ -0,0 +1,11 @@
--- runtime/filetype.vim
+++ runtime/filetype.vim
@@ -146,7 +146,7 @@
\ endif
" Grub (must be before catch *.lst)
-au BufNewFile,BufRead /boot/grub/menu.lst,/boot/grub/grub.conf,/etc/grub.conf setf grub
+au BufNewFile,BufRead */boot/grub/menu.lst,*/boot/grub/grub.conf,*/etc/grub.conf setf grub
" Assembly (all kinds)
" *.lst is not pure assembly, it has two extra columns (address, byte codes)

View File

@ -0,0 +1,42 @@
--- vim70/runtime/gvimrc_example.vim.orig 2004-06-07 16:32:41.000000000 +0200
+++ vim70/runtime/gvimrc_example.vim 2006-07-11 15:22:06.000000000 +0200
@@ -13,9 +13,6 @@
" Make external commands work through a pipe instead of a pseudo-tty
"set noguipty
-" set the X11 font to use
-" set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1
-
set ch=2 " Make command line two lines high
set mousehide " Hide the mouse when typing text
@@ -57,3 +54,29 @@
highlight Special gui=NONE guibg=grey95
endif
+
+" Determine the LC_CTYPE locale category setting and try to set guifontset accordingly:
+
+let tmplang = $LC_ALL
+if tmplang =~ "^$"
+ let tmplang = $LC_CTYPE
+endif
+if tmplang =~ "^$"
+ let tmplang = $LANG
+endif
+if tmplang =~ "^$"
+ let tmplang = "en_US"
+endif
+
+if tmplang =~ "^ko"
+ set guifont=Luxi\ Mono
+elseif tmplang =~ "^ja"
+ set guifont=Luxi\ Mono
+elseif tmplang =~ "^zh"
+ set guifont=Luxi\ Mono
+else
+ set guifont=monospace
+endif
+
+
+" /etc/gvimrc ends here

10
vim-7.0-help_tags.patch Normal file
View File

@ -0,0 +1,10 @@
--- vim70/runtime/doc/Makefile.orig 2006-04-27 17:17:05.000000000 +0200
+++ vim70/runtime/doc/Makefile 2006-07-11 16:20:22.000000000 +0200
@@ -299,6 +299,7 @@
# Use Vim to generate the tags file. Can only be used when Vim has been
# compiled and installed. Supports multiple languages.
vimtags: $(DOCS)
+ export VIMRUNTIME=../; \
$(VIMEXE) -u NONE -esX -c "helptags ." -c quit
# Use "doctags" to generate the tags file. Only works for English!

View File

@ -0,0 +1,18 @@
--- vim70/runtime/syntax/fstab.vim.orig 2006-04-16 18:01:27.000000000 +0200
+++ vim70/runtime/syntax/fstab.vim 2006-07-11 15:37:50.000000000 +0200
@@ -26,6 +26,7 @@
syn match fsDeviceError /\%([^a-zA-Z0-9_\/#@:]\|^\w\{-}\ze\W\)/ contained
syn keyword fsDeviceKeyword contained none proc linproc tmpfs devpts sysfs usbfs
syn keyword fsDeviceKeyword contained LABEL nextgroup=fsDeviceLabel
+syn match fsDeviceKeyword /[a-z0-9_]*fs/ contained
syn match fsDeviceLabel contained /=[^ \t]\+/hs=s+1 contains=fsOperator
" Mount Point
@@ -37,6 +38,7 @@
syn cluster fsTypeCluster contains=fsTypeKeyword,fsTypeUnknown
syn match fsTypeUnknown /\s\+\zs\w\+/ contained
syn keyword fsTypeKeyword contained adfs affs atfs audiofs auto autofs befs bfs cd9660 cfs cifs coda cramfs devfs devpts e2compr efs ext2 ext3 fdesc hfs hpfs iso9660 jffs jffs2 jfs kernfs linprocfs mfs minix msdos ncpfs nfs none none ntfs null nwfs ovlfs portal proc procfs qnx4 reiserfs romfs shm smbfs std subfs swap sysfs sysv tcfs tmpfs udf ufs umap umsdos union usbfs userfs vfat vs3fs vxfs wrapfs wvfs xfs zisofs
+syn match fsTypeKeyword /[a-z0-9_]*fs/ contained
" Options
" -------

3
vim-7.0-lang.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2e6cec9cb1e102935e09bb7d04870e7bfe239c4215bf98f248c79f4c5a78efc2
size 631550

View File

@ -0,0 +1,12 @@
--- vim70/src/vimtutor.orig 2004-06-07 16:32:27.000000000 +0200
+++ vim70/src/vimtutor 2006-07-11 16:28:08.000000000 +0200
@@ -11,8 +11,7 @@
export xx
# We need a temp file for the copy. First try using a standard command.
-tmp="${TMPDIR-/tmp}"
-TUTORCOPY=`mktemp $tmp/tutorXXXXXX || tempfile -p tutor || echo none`
+TUTORCOPY=`mktemp /tmp/tutorXXXXXX || echo /tmp/tutor$$`
# If the standard commands failed then create a directory to put the copy in.
# That is a secure way to make a temp file.

18
vim-7.0-name_vimrc.patch Normal file
View File

@ -0,0 +1,18 @@
--- vim70/src/feature.h.orig 2006-04-27 01:14:13.000000000 +0200
+++ vim70/src/feature.h 2006-07-11 16:28:08.000000000 +0200
@@ -898,12 +898,13 @@
* SYS_VIMRC_FILE Name of the system-wide .vimrc file.
*/
/* #define SYS_VIMRC_FILE "/etc/vimrc" */
-
+#define SYS_VIMRC_FILE "/etc/vimrc"
/*
* SYS_GVIMRC_FILE Name of the system-wide .gvimrc file.
*/
/* #define SYS_GVIMRC_FILE "/etc/gvimrc" */
-
+#define SYS_GVIMRC_FILE "/etc/gvimrc"
+
/*
* DFLT_HELPFILE Name of the help file.
*/

29
vim-7.0-no_nb.patch Normal file
View File

@ -0,0 +1,29 @@
--- vim70/src/po/Makefile.orig 2006-04-02 13:28:36.000000000 +0200
+++ vim70/src/po/Makefile 2006-07-11 10:29:14.000000000 +0200
@@ -16,7 +16,7 @@
it \
ja \
ko \
- no \
+ nb \
pl \
ru \
sk \
@@ -40,7 +40,7 @@
it.mo \
ja.mo \
ko.mo \
- no.mo \
+ nb.mo \
pl.mo \
ru.mo \
sk.mo \
@@ -74,7 +74,7 @@
it.ck \
ja.ck \
ko.ck \
- no.ck \
+ nb.ck \
pl.ck \
ru.ck \
sk.ck \

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:907d30c1a2ccb0262dd6f2b7a2444ae1e992d1fb2a1b7e600b91c184289f48a9
size 103328

View File

@ -0,0 +1,11 @@
--- vim70/src/auto/configure.orig 2006-05-04 12:46:19.000000000 +0200
+++ vim70/src/auto/configure 2006-08-09 14:45:46.000000000 +0200
@@ -4784,7 +4784,7 @@
if test "X$librubyarg" != "X"; then
RUBY_LIBS="$librubyarg $RUBY_LIBS"
fi
- rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
+ rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]' | sed 's/\\\\,/,/g'`
if test "X$rubyldflags" != "X"; then
LDFLAGS="$rubyldflags $LDFLAGS"
fi

16
vim-7.0-sh_is_bash.patch Normal file
View File

@ -0,0 +1,16 @@
--- vim70/runtime/syntax/sh.vim.orig 2006-04-13 18:46:09.000000000 +0200
+++ vim70/runtime/syntax/sh.vim 2006-07-11 16:08:09.000000000 +0200
@@ -54,6 +54,13 @@
endif
endif
+" Neither is_kornshell nor is_bash was explicitly set, and
+" /bin/sh is a bash on SUSE LINUX.
+if exists("b:is_sh")
+ let b:is_bash= 1
+ unlet b:is_sh
+endif
+
" set up default g:sh_fold_enabled {{{1
if !exists("g:sh_fold_enabled")
let g:sh_fold_enabled= 0

8
vim-7.0-use_awk.patch Normal file
View File

@ -0,0 +1,8 @@
--- vim70/runtime/tools/mve.awk.orig 2004-06-07 16:32:33.000000000 +0200
+++ vim70/runtime/tools/mve.awk 2006-07-11 16:28:08.000000000 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/nawk -f
+#!/usr/bin/awk -f
#
# Change "nawk" to "awk" or "gawk" if you get errors.
#

3
vim-7.0.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:494e27bd169d333917c0febcace466f89d119f71961e8959022fc6eab89764fc
size 6575205

845
vim.changes Normal file
View File

@ -0,0 +1,845 @@
-------------------------------------------------------------------
Mon Nov 6 11:05:29 CET 2006 - mkoenig@suse.de
- add apparmor syntax highlighting [#190084]
-------------------------------------------------------------------
Tue Oct 31 12:22:31 CET 2006 - mkoenig@suse.de
- enable grub mode for different root dir [#113647]
-------------------------------------------------------------------
Tue Oct 24 12:28:28 CEST 2006 - mkoenig@suse.de
- added official patchs 077-146:
* minor bugfixes
- fix UUID matching in fstab syntax mode [#211238]
-------------------------------------------------------------------
Wed Aug 30 10:36:19 CEST 2006 - kssingvo@suse.de
- added official patches 067-076:
* undo problems when using input method
* 'ignorecase' is not used properly for Insert mode completion
* crash when setting 'guitablabel' to "%!expand(\%)"
* compiler warnings for shadowed and uninitialized variables
* using empty search pattern may cause a crash
* can't specify anything to do when starting the GUI fails
* CR in Insert mode completion may select original text
* (extra) Win32: tooltips can be in the wrong encoding
* winsaveview() could store wrong desired cursor column
* (after 7.0.010) could not get spell files from non-ftp server
-------------------------------------------------------------------
Wed Aug 23 11:59:20 CEST 2006 - kssingvo@suse.de
- added official patches 051-066:
* (after 7.0.44) compile and/or run problem with Perl interface
* the Vim server may expose more functionality than expected
* shortening multi-byte directory name may fail
* using an empty menu name may cause a crash
* ":startins" in CmdwinEnter autocmd doesn't work immediately
* can't use "#!" in Vim scripts to make them executable
* (extra, after 7.0.45) compilation trouble with Borland C 5.5
* gbk and gb18030 encodings are not recognized
* Perl interface doesn't compile with ActiveState Perl 5.8.8
* code for switching buffers is repeated in several places
* crash in Vim command completion when nothing to complete
* Mac: crash when using popup menu with spell error
* tiny chance for a memory leak
* compiler warnings for unused variables
* (extra) Mac: horizontal scroll wheel caused vertical scroll
* tab pages line not redrawn after removing the popup menu
-------------------------------------------------------------------
Wed Aug 9 17:30:49 CEST 2006 - kssingvo@suse.de
- fixed vim-enhaced package:
* builds now more conform
* without gui now
* removed unneccesary binaries introduced through rebuild
- added official patches 038-050:
* complete() can be used from expr. mapping after inserting text
* third argument for inputdialog() doesn't work in the console
* mouse selection with "z=" and inputlist() gets wrong entry
* cursor([1, 2]) failed, required third item in the list
* crash or hang when pasting a block in Insert mode
* "%!" at start of 'statusline' didn't work
* Perl: changing a line in a non-current buffer may not work
* (extra) Win32: MSVC 2005 compiler warnings for OLE version
* the matchparen plugin didn't handle parens in single quotes
* the exit status of the configure script can be wrong
* the gzip plugin can't handle file names that have a paren
* some Tcl scripts are not recognized
* can't properly close a buffer through the NetBeans interface
- patch for ruby output on query of LDFLAGS
- fixed use_update_desktop_file: no longer destroys shell echo
-------------------------------------------------------------------
Fri Jul 21 15:15:22 CEST 2006 - schwab@suse.de
- Add /bin/ex [#193953].
- Fix file list.
-------------------------------------------------------------------
Wed Jul 12 11:00:58 CEST 2006 - kssingvo@suse.de
- added new official patches 036-037
- splitted vim-enhanced package with all features
-------------------------------------------------------------------
Tue Jul 11 17:12:57 CEST 2006 - kssingvo@suse.de
- update to 7.0
o Spell checking support for about 50 languages
o Intelligent completion for C, HTML, Ruby, Python, PHP, etc.
o Tab pages, each containing multiple windows
o Undo branches: never accidentally lose text again
o Vim script supports Lists and Dictionaries (similar to Python)
o Vim script profiling
o Improved Unicode support
o Highlighting of cursor line, cursor column and matching braces
o Translated manual pages support.
o Internal grep; works on all platforms, searches compressed files
o Browsing remote directories, zip and tar archives
o Printing multi-byte text
-------------------------------------------------------------------
Wed Jun 7 17:13:49 CEST 2006 - kssingvo@suse.de
- fix for crash in gui (bugzilla#182212)
-------------------------------------------------------------------
Sat Mar 18 01:24:54 CET 2006 - jw@suse.de
- fixed bugzilla # 112930
no more segv upon svn commit.
-------------------------------------------------------------------
Fri Feb 24 13:28:58 CET 2006 - hvogel@suse.de
- Dont package any gvimrc (except in %doc), just use apps defaults.
Otherwise we will play default settings ping pong
forever [#152830]
-------------------------------------------------------------------
Thu Feb 2 21:32:01 CET 2006 - rml@suse.de
- Make X selection again work in gvim (Bug #144109)
-------------------------------------------------------------------
Wed Feb 1 17:40:28 CET 2006 - hvogel@suse.de
- generate help-tags tag during build
-------------------------------------------------------------------
Mon Jan 30 11:43:00 CET 2006 - mmj@suse.de
- Add FreeMarker templates syntax highlighting [#144295]
-------------------------------------------------------------------
Wed Jan 25 21:31:05 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Sat Jan 14 20:30:35 CET 2006 - schwab@suse.de
- Don't strip binaries.
-------------------------------------------------------------------
Thu Jan 12 17:49:14 CET 2006 - mmj@suse.de
- Add patches 6.4.001 through 6.4.006
- Compile with -fstack-protector-all
-------------------------------------------------------------------
Wed Jan 11 16:22:47 CET 2006 - mmj@suse.de
- Use a better gvimrc [#141096]
-------------------------------------------------------------------
Mon Dec 19 15:24:18 CET 2005 - ro@suse.de
- remove unpackaged symlinks
-------------------------------------------------------------------
Mon Dec 5 15:07:01 CET 2005 - mmj@suse.de
- Make sure SELinux is disabled
-------------------------------------------------------------------
Sun Oct 16 20:36:00 CEST 2005 - mmj@suse.de
- Update to vim-6.4 which is a pure bugfix release, no new features
was added (they all go to vim7)
- Disable selinux patch for now
-------------------------------------------------------------------
Thu Jul 21 16:20:17 CEST 2005 - mmj@suse.de
- Add pathes 6.3.76 through 6.3.84
-------------------------------------------------------------------
Tue Jul 19 18:19:00 CEST 2005 - lnussel@suse.de
- Don't strip binaries during install to get a useful debuginfo
package
-------------------------------------------------------------------
Thu Jul 7 10:33:14 CEST 2005 - mmj@suse.de
- Fix missing decl on vitmp.c
-------------------------------------------------------------------
Thu Jun 2 12:21:14 CEST 2005 - mmj@suse.de
- Add patches 6.3.59 through 6.3.75
-------------------------------------------------------------------
Tue Jan 25 16:46:46 CET 2005 - mmj@suse.de
- Add patches 6.3.55 through 6.3.58
-------------------------------------------------------------------
Fri Jan 21 15:15:24 CET 2005 - mmj@suse.de
- /bin/sh is bash on SUSE LINUX, so highlight as such [#49872]
-------------------------------------------------------------------
Thu Jan 20 20:12:43 CET 2005 - mmj@suse.de
- Fix insecure tmp file handling [#50025]
-------------------------------------------------------------------
Fri Jan 7 15:02:53 CET 2005 - mmj@suse.de
- Add patches 6.3.47 through 6.3.54
-------------------------------------------------------------------
Mon Dec 13 14:13:04 CET 2004 - mmj@suse.de
- Add patches 6.3.044 to 6.0.46 from upstream [#49092]
- Explain that modelines enabling can be potentially evil
-------------------------------------------------------------------
Tue Dec 7 17:23:09 CET 2004 - mmj@suse.de
- Add patches 6.3.032 to 6.0.43 from upstream
-------------------------------------------------------------------
Wed Nov 24 14:23:51 CET 2004 - ro@suse.de
- use macro for python version
-------------------------------------------------------------------
Tue Nov 16 10:43:21 CET 2004 - hvogel@suse.de
- add gvim icon
-------------------------------------------------------------------
Wed Nov 10 11:17:02 CET 2004 - hvogel@suse.de
- fix the 'current' link to point to the right directory
-------------------------------------------------------------------
Fri Oct 22 23:35:36 CEST 2004 - mmj@suse.de
- Make the rpm versioning match what vim does itself
- Add patch 31 from upstream
-------------------------------------------------------------------
Tue Oct 19 10:10:56 CEST 2004 - mmj@suse.de
- locale no should correctly be nb so make it so
-------------------------------------------------------------------
Wed Oct 13 15:58:51 CEST 2004 - mmj@suse.de
- Include bugfixes up to and including patch 30
-------------------------------------------------------------------
Sat Sep 4 22:23:20 CEST 2004 - mmj@suse.de
- Include the latest bugfix patches 16-23
-------------------------------------------------------------------
Tue Aug 24 11:39:21 CEST 2004 - mmj@suse.de
- Also recognize "%t" and "%j" [#43985]
-------------------------------------------------------------------
Tue Aug 24 08:12:16 CEST 2004 - mmj@suse.de
- Make printf format string "%z" be recognized and hilighted [#43985]
-------------------------------------------------------------------
Thu Aug 12 11:16:41 CEST 2004 - mmj@suse.de
- Update bugfixing patches including 12-15
-------------------------------------------------------------------
Sat Jul 3 12:46:09 CEST 2004 - mmj@suse.de
- Update bugfixing patches 001 through 011
-------------------------------------------------------------------
Tue Jun 8 22:37:00 CEST 2004 - mmj@suse.de
- Update to vim-6.3
-------------------------------------------------------------------
Fri May 7 22:15:09 CEST 2004 - mmj@suse.de
- Apply official patches up to including 531
-------------------------------------------------------------------
Mon May 3 09:15:31 CEST 2004 - mmj@suse.de
- Apply official patches up to including 521
-------------------------------------------------------------------
Tue Apr 13 11:52:00 CEST 2004 - mmj@suse.de
- Use extra again
- Apply official patches up to including 6.2.466
-------------------------------------------------------------------
Wed Mar 17 21:31:54 CET 2004 - mmj@suse.de
- Apply patch from Juergen Weigert to make 'ga' work correctly with
UTF-8
-------------------------------------------------------------------
Wed Feb 25 10:04:17 CET 2004 - kukuk@suse.de
- Fix version detection
- Fix SELinux patch (return code of one function)
-------------------------------------------------------------------
Mon Feb 23 17:33:55 CET 2004 - mmj@suse.de
- Adjust patches to include up to 6.2.263
- Only patch SELinux on versions after 9.0
-------------------------------------------------------------------
Mon Feb 9 10:49:24 CET 2004 - mmj@suse.de
- Add patches we want from 175 to 245
-------------------------------------------------------------------
Wed Jan 28 10:36:40 CET 2004 - kukuk@suse.de
- Add SELinux patch
-------------------------------------------------------------------
Sat Jan 10 12:08:14 CET 2004 - adrian@suse.de
- build as user
-------------------------------------------------------------------
Fri Jan 9 16:29:47 CET 2004 - mmj@suse.de
- compile with "-fno-strict-aliasing"
-------------------------------------------------------------------
Fri Jan 9 13:05:20 CET 2004 - mmj@suse.de
- add patches we want from 99 to 174
- regenerate patches
- add patch for fstab syntax highlighting [#33814]
-------------------------------------------------------------------
Wed Sep 17 16:22:53 CEST 2003 - fehr@suse.de
- add patches patches 91 to 98 from vim homepage
-------------------------------------------------------------------
Fri Sep 12 12:55:31 CEST 2003 - fehr@suse.de
- add patches patches 76 to 89 from vim homepage
(vim-6.2-altscreen.dif is therefore obsolete)
-------------------------------------------------------------------
Wed Sep 10 13:14:16 CEST 2003 - fehr@suse.de
- add patches patches 72 to 75 from vim homepage
-------------------------------------------------------------------
Wed Sep 3 12:31:21 CEST 2003 - mls@suse.de
- replace vim132 with bash version and delete post scriptlet
-------------------------------------------------------------------
Tue Aug 26 13:13:02 CEST 2003 - fehr@suse.de
- update ycp.vim and changes.vim
-------------------------------------------------------------------
Mon Aug 25 17:43:38 CEST 2003 - mls@suse.de
- fix aternate screen problem (again)
-------------------------------------------------------------------
Fri Aug 22 16:43:02 CEST 2003 - fehr@suse.de
- add patches patches 70 to 71 from vim homepage
-------------------------------------------------------------------
Sat Aug 16 16:10:49 CEST 2003 - adrian@suse.de
- install desktop file for gvim from kappfinder
-------------------------------------------------------------------
Fri Aug 15 11:04:07 CEST 2003 - mfabian@suse.de
- adapt vim-6.2-gvimrc-fontset.dif to the settings needed for
a gtk2 build. For most languages it is OK to set "guifontset"
to "monospace". But for Korean "monospace" expands to
"Baekmuk Gulim" with our current default settings and
this results in a very wide, broken spacing between the letters.
As this effect happens with many CJK fonts and the Latin glyphs
in many CJK fonts are ugly, set a good Latin font as the default
for CJK. This latin font is automatically combined with the
appropriate CJK font according to the rules in
/etc/fonts/fonts.conf. I choose "Luxi\ Mono" because this
is guaranteed to be installed always.
-------------------------------------------------------------------
Tue Aug 12 22:02:54 CEST 2003 - mmj@suse.de
- change the GUI to be built with gtk2
-------------------------------------------------------------------
Tue Aug 12 17:23:30 CEST 2003 - fehr@suse.de
- add liux relevant patches 15 - 69
-------------------------------------------------------------------
Wed Jul 16 10:34:00 CEST 2003 - fehr@suse.de
- create link eview to gvim
-------------------------------------------------------------------
Tue Jun 24 17:39:00 CEST 2003 - mmj@suse.de
- Update to 6.2 including:
· Support for GTK2
· Support for editing Arabic text
· ":try" command and exception handling
· Support for the neXtaw GUI toolkit
· Cscope support for Win32
· Support for PostScript printing in various 8-bit encodings
- Add non-Win32 patches from 1 - 14
-------------------------------------------------------------------
Tue May 27 11:00:38 CEST 2003 - fehr@suse.de
- remove unpackaged files from buildroot
-------------------------------------------------------------------
Fri May 23 14:34:37 CEST 2003 - fehr@suse.de
- add vitmp binary and man page to package
-------------------------------------------------------------------
Wed Apr 2 02:13:26 CEST 2003 - ro@suse.de
- updated python path
-------------------------------------------------------------------
Mon Mar 3 13:11:19 CET 2003 - fehr@suse.de
- add patches 318 to 364 from ftp.vim.org
-------------------------------------------------------------------
Mon Feb 3 10:38:45 CET 2003 - adrian@suse.de
- remove -mminimal-toc from RPM_OPT_FLAGS for ppc
- add patches 240 to 317 from ftp.vim.org
-------------------------------------------------------------------
Wed Jan 1 16:43:10 CET 2003 - adrian@suse.de
- add a comment in the default vimrc to get the completion
behaviour as in bash (often asked).
-------------------------------------------------------------------
Mon Dec 16 14:04:22 CET 2002 - fehr@suse.de
- add "modelines=0" to default vimrc because of security
considerations
-------------------------------------------------------------------
Fri Dec 13 15:29:12 CET 2002 - ro@suse.de
- updated neededforbuild
-------------------------------------------------------------------
Thu Nov 7 13:14:08 CET 2002 - mfabian@suse.de
- add patches 151 to 248 from ftp.vim.org (Bug #12157 is fixed
by patch 194, made by Michael Schroeder <mls@suse.de>)
-------------------------------------------------------------------
Wed Oct 30 19:36:48 CET 2002 - agruen@suse.de
- Add dependency on acl-devel package so POSIX ACL support
is enabled.
-------------------------------------------------------------------
Tue Aug 20 02:58:33 CEST 2002 - mmj@suse.de
- Correct PreReq
-------------------------------------------------------------------
Wed Aug 7 16:33:49 CEST 2002 - werner@suse.de
- Fix vimrc for xterm and add some more keys (bug #15002)
-------------------------------------------------------------------
Tue Aug 6 09:39:22 CEST 2002 - fehr@suse.de
- add commands to vimrc to recognize last cursor position in a file
- add patches 033 to 150 from ftp.vim.org
-------------------------------------------------------------------
Fri Aug 2 10:00:43 CEST 2002 - adrian@suse.de
- do not handle vim and kvim together anymore
-------------------------------------------------------------------
Tue Jun 25 09:15:22 CEST 2002 - olh@suse.de
- build with -mminimal-toc on ppc64
-------------------------------------------------------------------
Wed Jun 5 12:37:22 CEST 2002 - ro@suse.de
- specify python config dir (not found on lib64 platforms)
-------------------------------------------------------------------
Thu Apr 25 16:01:45 CEST 2002 - fehr@suse.de
- make vim again read /etc/vimrc or /etc/gvimrc
- add patches 001 to 032 from ftp.vim.org
-------------------------------------------------------------------
Wed Apr 10 11:27:17 CEST 2002 - adrian@suse.de
- update to version 6.1
- remove obsolete patches
- clean xim.diff from patches which gone to the source
- add gui_kde support for kvim
-------------------------------------------------------------------
Tue Apr 2 14:28:12 CEST 2002 - fehr@suse.de
- remove disable_system.patch that prevent print menue entry in
gvim from working (#15355)
-------------------------------------------------------------------
Thu Mar 14 12:52:38 CET 2002 - fehr@suse.de
- add patch 6.0.164 to patches
(After patch 6.0.135 the menu entries for pasting don't work in
Insert and Visual mode. Add <script> to allow script-local mappings.)
-------------------------------------------------------------------
Sun Mar 10 16:36:46 CET 2002 - mfabian@suse.de
- fix typo in entry for Korean fontset which prevented the
gulim fonts from being used
-------------------------------------------------------------------
Mon Mar 4 18:08:40 CET 2002 - mfabian@suse.de
- change default fontset entry for Korean to prevent core dump
in Korean locale.
Our previous default selected was
guifontset=-*-clean-bold-r-*--16-*-*-*-*-*-*-*,
-*-gulim-medium-r-*--16-*-*-*-*-*-*-*
but since XFree86 4.2.0 the 'clean-bold' pattern doesn't
match any iso8859-1 font anymore. Now it matches only:
-schumacher-clean-bold-r-normal--16-160-75-75-c-80-iso646.1991-irv
Because of this 'gvim' can't get any usable font, and
gui.char_width becomes 0. This leads to a division by 0
in function gui_resize_shell().
-------------------------------------------------------------------
Sun Mar 3 17:52:13 CET 2002 - mfabian@suse.de
- add xim.diff from "Yasuhiro Matsumoto" <mattn_jp@hotmail.com>
This patch makes OnTheSpot input style perfectly usable for
Japanese, without the patch OnTheSpot input style is severely
broken.
-------------------------------------------------------------------
Thu Feb 28 13:11:21 CET 2002 - kukuk@suse.de
- Add hack to avoid csh dependency
- Make beta-testers happy
-------------------------------------------------------------------
Sat Feb 23 23:00:16 CET 2002 - mfabian@suse.de
- choose a different fontset for locales starting with 'zh'
(zh_TW, zh_CN, ...) because the new default fontset is not
suitable for these locales
-------------------------------------------------------------------
Thu Feb 21 15:32:01 CET 2002 - fehr@suse.de
- change default fontset to use "iso8859-*" as encoding part
-------------------------------------------------------------------
Thu Feb 7 17:47:16 CET 2002 - fehr@suse.de
- remove RPM_BUILD_ROOT path in man pages (#13054)
-------------------------------------------------------------------
Tue Feb 5 18:06:07 CET 2002 - schwab@suse.de
- Don't add /usr/local/include and /usr/local/lib to search paths.
-------------------------------------------------------------------
Tue Jan 29 19:48:55 CET 2002 - fehr@suse.de
- add patches 094 to 154 for vim 6.0 from ftp.vim.org
- syntax files changes.vim and ycp.vim are now separate source files
-------------------------------------------------------------------
Fri Dec 7 16:17:39 CET 2001 - mfabian@suse.de
- add vim-6.0-euro-menu.dif which removes @euro when looking
for a menu translation for gvim. Without this,
"LC_ALL=de_DE@euro gvim" will show English menus
-------------------------------------------------------------------
Thu Nov 29 18:09:17 CET 2001 - fehr@suse.de
- add patches 074 to 093 for vim 6.0 from ftp.vim.org
- add option nocompatible again to /etc/vimrc (defaults are simply
more usable this way)
-------------------------------------------------------------------
Thu Nov 29 01:14:20 CET 2001 - mfabian@suse.de
- added NLS support again (vim-6.0-lang.tar.bz2 was not unpacked)
- applied fontset patch to /etc/gvimrc again
-------------------------------------------------------------------
Thu Nov 15 10:44:11 CET 2001 - fehr@suse.de
- changed default vimrc according to suggestions of vim developer
-------------------------------------------------------------------
Mon Nov 5 13:31:36 CET 2001 - fehr@suse.de
- added links vimdiff and gvimdiff
- added egvim link to /usr/X11R6/bin
- prevent use of tempname command in vimtutor
- add patches 001 to 072 for vim 6.0 from ftp.vim.org
-------------------------------------------------------------------
Fri Oct 19 15:09:33 CEST 2001 - mmj@suse.de
- Updated to 6.0
- Merges the gvim.spec and vim.spec into one specfile.
- Added a ppd.vim syntax file from bjacke@suse.de
-------------------------------------------------------------------
Tue Sep 11 13:27:07 CEST 2001 - mfabian@suse.de
- update to Vim 6.0av
(Bram Moolenaar: "Just bug fixes this time, and
quite a lot of them ...") For details about the bugs fixed,
please read /usr/share/doc/packages/vim/ANNOUNCEMENT.vim-6.0av
-------------------------------------------------------------------
Wed Aug 29 14:07:01 CEST 2001 - fehr@suse.de
- add new ycp sytax file from Michal Svec
- add extensions .scr and .yh as ycp extensions
-------------------------------------------------------------------
Tue Aug 28 13:56:51 CEST 2001 - mfabian@suse.de
- update to Vim 6.0at
- removed sf_warnings.dif (included upstream)
- add --with-features=big
- remove --enable-broken-locale
- remove --enable-fontset
- add BuildRoot
- add %{?suse_update_config:%{suse_update_config -f }}
-------------------------------------------------------------------
Thu Aug 16 11:44:39 CEST 2001 - fehr@suse.de
- update to new version 5.8 with patches 5.8.001 to 008 applied
- add syntax file for .changes files from Michal Svec
-------------------------------------------------------------------
Wed May 16 16:20:32 CEST 2001 - fehr@suse.de
- fix pointer-cast-warnings on 64bit archs
-------------------------------------------------------------------
Mon May 7 18:24:52 CEST 2001 - mfabian@suse.de
- bzip2 source
-------------------------------------------------------------------
Mon Apr 9 12:07:32 MEST 2001 - fehr@suse.de
- change back to old version 5.7 since 6.0aa is not stable enough
(according to maintainer Bram Moolenaar)
- add patches 001-028 from vim.org to vim 5.7
-------------------------------------------------------------------
Fri Apr 6 11:04:25 CEST 2001 - mfabian@suse.de
- add tarball for nls support: vim-6.0aa-lang.tar.bz2
- use suse_update_config
- remove --enable-broken-locale --enable-fontset
- add BuildRoot
- bzip2 tarballs
-------------------------------------------------------------------
Thu Apr 5 15:25:02 CEST 2001 - fehr@suse.de
- change to new version 6.0aa
-------------------------------------------------------------------
Mon Mar 26 17:10:00 CEST 2001 - kendy@suse.cz
- Added syntax file for YCP (YaST2 Communication Protocol)
-------------------------------------------------------------------
Mon Jan 8 14:45:54 MET 2001 - fehr@suse.de
- change occurences of $VIM in vimrc example to $VIMRUNTIME
-------------------------------------------------------------------
Tue Nov 21 19:13:28 CET 2000 - werner@suse.de
- Remove swapping of kp-separator/kp-decimal because it's
done in xkbd map for german keyboards
- Add some newer xterm escape sequences (oldFunctionsKeys)
-------------------------------------------------------------------
Fri Oct 6 18:03:19 CEST 2000 - kukuk@suse.de
- change group tag
-------------------------------------------------------------------
Mon Jul 24 08:59:33 GMT 2000 - fehr@suse.de
- New version 5.7
-------------------------------------------------------------------
Wed Mar 1 19:55:33 CET 2000 - werner@suse.de
- Move vim and the link vi to /bin/ and make symlinks backward
- Include symlinks edit and ex into vim file list
- Include symlinks gex, gvi, gview, rgvim, rgview into gvim file list
- Make symlink current to version directory in /usr/share/vim
-------------------------------------------------------------------
Tue Feb 29 15:41:57 MET 2000 - fehr@suse.de
- removed use of mouse daemon (libgpm)
-------------------------------------------------------------------
Thu Feb 24 12:46:36 MET 2000 - fehr@suse.de
- removed dependency on nawk
-------------------------------------------------------------------
Tue Jan 25 19:47:28 CET 2000 - werner@suse.de
- New version 5.6
- Do not use strange settings in /etc/vimrc (e.g. edcompatible)
- Make terminal settings in /etc/vimrc depending on terminal type
- Create a ~/.vimrc for /etc/skel/
- /usr/man -> /usr/share/man
-------------------------------------------------------------------
Wed Jan 12 13:37:02 MET 2000 - fehr@suse.de
- fix wrong path in /etc/vimrc
-------------------------------------------------------------------
Fri Nov 5 17:49:28 MET 1999 - kukuk@suse.de
- Use gawk instead of nawk
-------------------------------------------------------------------
Fri Oct 16 11:21:59 CEST 1999 - ml@suse.de
- removed typo from vim-5.4.dif
-------------------------------------------------------------------
Thu Sep 16 16:21:59 CEST 1999 - ro@suse.de
- added "Provides vi_clone"
-------------------------------------------------------------------
Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
-------------------------------------------------------------------
Fri Aug 27 09:03:06 MEST 1999 - fehr@suse.de
- changed to new version 5.4
-------------------------------------------------------------------
Sun Dec 13 14:31:07 MET 1998 - bs@suse.de
- fixed problem with empty man page
-------------------------------------------------------------------
Fri Dec 4 12:09:08 MET 1998 - ro@suse.de
- cleanup and bugfix for suse.vimrc
-------------------------------------------------------------------
Mon Nov 23 14:47:24 MET 1998 - ro@suse.de
- update to 5.3
- merged werners vimrc and florian's hack for linux-m
- install other vimrc_example as %doc
-------------------------------------------------------------------
Fri Oct 17 13:39:41 MEST 1997 - ro@suse.de
- ready for autobuild using 4.6tar and 4.6dif
----------------------------------------------------------------------------
Wed May 28 17:38:44 MET DST 1997 - werner@suse.de
- New /etc/vimrc added
----------------------------------------------------------------------------
Sun Apr 13 23:04:29 MEST 1997 - florian@suse.de
- update to new version 4.6
- mv ctags into a new package ctags.tgz
----------------------------------------------------------------------------
Tue Oct 22 22:14:08 MEST 1996 - florian@suse.de
- Update auf Version 4.5.
- Jetzt ist auch ctags und xxd dabei.
----------------------------------------------------------------------
Sun Aug 25 19:28:50 MET DST 1996 - florian@suse.de
new version 4.2
completely integrated help-system

781
vim.spec Normal file
View File

@ -0,0 +1,781 @@
#
# spec file for package vim (Version 7.0)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: vim
%define official_ptchlvl 146
BuildRequires: db-devel gettext-devel gpm gtk2-devel libacl-devel ncurses-devel python-devel ruby-devel tcl-devel update-alternatives update-desktop-files
License: Other License(s), see package
Group: Productivity/Editors/Vi
Provides: vi_clone
Autoreqprov: on
Version: 7.0
Release: 27
%define VIM_SUBDIR vim70
Summary: Vi IMproved
URL: http://www.vim.org/
Source: ftp://ftp.vim.org/pub/vim/unix/%{name}-%{version}.tar.bz2
Source1: ftp://ftp.vim.org/pub/vim/unix/%{name}-%{version}-lang.tar.bz2
Source2: ftp://ftp.vim.org/pub/vim/unix/%{name}-%{version}-extra.tar.bz2
Source3: suse.vimrc
Source4: vimrc_example1
Source5: vimrc_example2
Source6: ANNOUNCEMENT.vim-%{version}
Source7: ppd.vim
Source8: suse.gvimrc
Source9: README.SuSE
Source10: README.Japanese-XIM
Source11: changes.vim
Source12: ycp.vim
Source13: vitmp.c
Source14: vitmp.1
Source15: vim132
Source16: gvim.png
Source17: apparmor.vim
Patch0: %{name}-7.0-official_patches_001-%{official_ptchlvl}.bz2
Patch1: %{name}-7.0-no_nb.patch
Patch2: %{name}-7.0-gcc_overflow_check.patch
Patch3: %{name}-7.0-filetype_ycp.patch
Patch4: %{name}-7.0-gvimrc_fontset.patch
Patch5: %{name}-7.0-highlight_fstab.patch
Patch6: %{name}-7.0-sh_is_bash.patch
Patch7: %{name}-7.0-filetype_ftl.patch
Patch8: %{name}-7.0-help_tags.patch
Patch9: %{name}-7.0-use_awk.patch
Patch10: %{name}-7.0-name_vimrc.patch
Patch11: %{name}-7.0-mktemp_tutor.patch
Patch12: %{name}-7.0-ruby_ldflags_configure.patch
Patch13: %{name}-7.0-fstab_match_uuid.patch
Patch14: %{name}-7.0-grub.patch
Patch15: %{name}-7.0-apparmor.patch
# tbd??? %name-6.3-ga-utf8.diff
# tbd??? %name-6.3-initvals.diff
# tbd??? vim64-svn-crash.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: sh-utils fileutils
%description
Vim (Vi IMproved) is an almost compatible version of the UNIX editor
vi. Almost every possible command can be performed using only ASCII
characters. Only the 'Q' command is missing (you do not need it). Many
new features have been added: multilevel undo, command line history,
file name completion, block operations, and editing of binary data.
Vi is available for the AMIGA, MS-DOS, Windows NT, and various versions
of UNIX.
For SuSE Linux, Vim is used as /usr/bin/vi.
Package vim contains the smallest set of features, which should even
run in a minimal system. If you need more features, you might want to
install packages vim-enhanced or gvim.
Authors:
--------
Bram Moolenaar <bram@vim.org>
%package -n gvim
Group: Productivity/Editors/Vi
Requires: vim
Summary: A GUI for Vi
%description -n gvim
Start: /usr/X11R6/bin/gvim
Copy and modify /usr/share/vim/current/gvimrc to ~/.gvimrc if needed.
Package gvim contains the largest set of features of vim, which is
graphical windows and language interpreter, like python, ruby, or perl.
You need package vim for the help and other documentation too. If you
want less features, you might want to install packages vim-enhanced or
vim instead.
Authors:
--------
Bram Moolenaar <mool@oce.nl>
%package enhanced
Group: Productivity/Editors/Vi
Requires: vim
Summary: A version of the VIM editor which includes recent enhancements
%description enhanced
The vim-enhanced package contains a version of VIM with extra, recently
introduced features like Ruby, Perl and TCL interpreters, but it has no
graphical user interface. Please use gvim instead, if you need a gui
too.
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 base package 'vim', for online help, etc. If you need the
graphical features of vim, you might want to install package gvim too.
Authors:
--------
Bram Moolenaar <bram@vim.org>
%prep
%setup -q -n %{VIM_SUBDIR} -b 1 -b 2
%patch
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13
%patch14
%patch15 -p1
cp $RPM_SOURCE_DIR/vimrc_example* .
cp $RPM_SOURCE_DIR/ANNOUNCEMENT* .
rename no nb $RPM_BUILD_DIR/vim*/src/po/no.*
rename menu_no menu_nb $RPM_BUILD_DIR/vim*/runtime/lang/menu_no*
%build
pushd src
#----------------------------------
# build the small version of vim
#----------------------------------
CFLAGS="$RPM_OPT_FLAGS -Wall -pipe -fno-strict-aliasing -fstack-protector-all"
export CFLAGS
./configure $RPM_ARCH-suse-linux \
--prefix=/usr \
--mandir=%{_mandir} \
--with-features=big \
--enable-cscope \
--enable-multibyte \
--with-compiledby='http://www.suse.de/' \
--disable-gpm \
--without-x \
--disable-gui \
--disable-perlinterp \
--disable-pythoninterp \
--disable-rubyinterp \
--disable-tclinterp
make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/current MAKE="make -e"
# The make install below is ugly, but is there another way to get the sources
# out of the way before the reconfigure?
make DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} STRIP=: install
#-----------------------------------
# build the enhanced version of vim
#-----------------------------------
make distclean
./configure $RPM_ARCH-suse-linux \
--bindir=/usr/bin \
--prefix=/usr \
--mandir=%{_mandir} \
--with-features=huge \
--enable-cscope \
--enable-multibyte \
--enable-sniff \
--with-compiledby='http://www.suse.de/' \
--with-vim-name=vim-enhanced \
--with-tclsh=%{_bindir}/tclsh \
--enable-gui=no \
--with-tlib=ncurses \
--enable-perlinterp \
--enable-pythoninterp \
--enable-rubyinterp \
--enable-tclinterp \
--disable-xim
make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/current MAKE="make -e"
# again the ugly hack to prevent loss of binaries in next "make distclean"
make DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} STRIP=: install
#-----------------------------------
# build the graphical version of vim
#-----------------------------------
make distclean
./configure $RPM_ARCH-suse-linux \
--bindir=/usr/X11R6/bin \
--prefix=/usr \
--mandir=%{_mandir} \
--with-features=huge \
--enable-cscope \
--enable-multibyte \
--enable-sniff \
--with-compiledby='http://www.suse.de/' \
--with-x \
--with-python-config-dir=%{py_libdir}/config \
--with-vim-name=gvim \
--with-tclsh=%{_bindir}/tclsh \
--with-tlib=ncurses \
--enable-fontset \
--enable-gui=gtk2 \
--enable-max-features \
--enable-perlinterp \
--enable-pythoninterp \
--enable-xim
make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/current MAKE="make -e"
popd
gcc $RPM_OPT_FLAGS -Wall $RPM_SOURCE_DIR/vitmp.c -o vitmp
%install
make -C src DESTDIR=$RPM_BUILD_ROOT \
BINDIR=/usr/X11R6/bin \
MANDIR=%{_mandir} \
STRIP=: \
install
mkdir -p $RPM_BUILD_ROOT/bin
mv $RPM_BUILD_ROOT/usr/bin/vim $RPM_BUILD_ROOT/bin/vim
ln -sf ../../bin/vim $RPM_BUILD_ROOT/usr/bin/vim
ln -sf vim $RPM_BUILD_ROOT/bin/ex
ln -sf vim $RPM_BUILD_ROOT/bin/vi
ln -sf vim $RPM_BUILD_ROOT/usr/bin/edit
ln -sf vim $RPM_BUILD_ROOT/usr/bin/ex
ln -sf vim $RPM_BUILD_ROOT/usr/bin/vi
ln -sf vim $RPM_BUILD_ROOT/usr/bin/view
ln -sf vim $RPM_BUILD_ROOT/usr/bin/vimdiff
ln -sf gvim $RPM_BUILD_ROOT/usr/X11R6/bin/gex
ln -sf gvim $RPM_BUILD_ROOT/usr/X11R6/bin/gvi
ln -sf gvim $RPM_BUILD_ROOT/usr/X11R6/bin/gview
ln -sf gvim $RPM_BUILD_ROOT/usr/X11R6/bin/rgview
ln -sf gvim $RPM_BUILD_ROOT/usr/X11R6/bin/rgvim
ln -sf gvim $RPM_BUILD_ROOT/usr/X11R6/bin/evim
ln -sf gvim $RPM_BUILD_ROOT/usr/X11R6/bin/egvim
ln -sf gvim $RPM_BUILD_ROOT/usr/X11R6/bin/eview
ln -sf gvim $RPM_BUILD_ROOT/usr/X11R6/bin/gvimdiff
ln -sf vim.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/vi.1.gz
ln -sf vim.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/ex.1.gz
ln -sf %{VIM_SUBDIR} $RPM_BUILD_ROOT/usr/share/vim/current
mkdir -p $RPM_BUILD_ROOT/etc
install -m 0644 $RPM_SOURCE_DIR/suse.vimrc $RPM_BUILD_ROOT/etc/vimrc
install -m 0644 runtime/gvimrc_example.vim $RPM_BUILD_ROOT/etc/gvimrc
install -m 0644 $RPM_SOURCE_DIR/ppd.vim $RPM_BUILD_ROOT/usr/share/vim/%{VIM_SUBDIR}/syntax
install -m 0644 $RPM_SOURCE_DIR/ycp.vim $RPM_BUILD_ROOT/usr/share/vim/%{VIM_SUBDIR}/syntax
install -m 0644 $RPM_SOURCE_DIR/changes.vim $RPM_BUILD_ROOT/usr/share/vim/%{VIM_SUBDIR}/syntax
install -m 0644 %{SOURCE17} $RPM_BUILD_ROOT/usr/share/vim/%{VIM_SUBDIR}/syntax
install -m 0755 $RPM_SOURCE_DIR/vim132 $RPM_BUILD_ROOT/usr/share/vim/%{VIM_SUBDIR}/tools/vim132
cp %{SOURCE8} .
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/*ggvim*
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/gvimtutor*
install -m 755 vitmp $RPM_BUILD_ROOT/bin/
install -m 644 $RPM_SOURCE_DIR/vitmp.1 $RPM_BUILD_ROOT%{_mandir}/man1/
rm -f $RPM_BUILD_ROOT/usr/X11R6/bin/gvimtutor $RPM_BUILD_ROOT/usr/X11R6/bin/xxd
mkdir -p $RPM_BUILD_ROOT//usr/share/pixmaps
install -m 644 %{SOURCE16} $RPM_BUILD_ROOT/usr/share/pixmaps/
%suse_update_desktop_file -i gvim TextEditor 2> /dev/null
rm -f $RPM_BUILD_ROOT/usr/X11R6/bin/ex
rm -f $RPM_BUILD_ROOT/usr/X11R6/bin/ggvim
rm -f $RPM_BUILD_ROOT/usr/X11R6/bin/ggvimdiff
rm -f $RPM_BUILD_ROOT/usr/X11R6/bin/rggvim
rm -f $RPM_BUILD_ROOT/usr/X11R6/bin/rview
rm -f $RPM_BUILD_ROOT/usr/X11R6/bin/view
rm -f $RPM_BUILD_ROOT/usr/bin/evim-enhanced
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/evim-enhanced*
rm -f $RPM_BUILD_ROOT/usr/share/man/*/man1/evim-enhanced*
rm -f $RPM_BUILD_ROOT/usr/bin/rvim-enhanced
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/rvim-enhanced*
rm -f $RPM_BUILD_ROOT/usr/share/man/*/man1/rvim-enhanced*
rm -f $RPM_BUILD_ROOT/usr/bin/vim-enhanceddiff
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/vim-enhanceddiff*
rm -f $RPM_BUILD_ROOT/usr/share/man/*/man1/vim-enhanceddiff*
rm -f $RPM_BUILD_ROOT/usr/bin/vim-enhancedtutor
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/vim-enhancedtutor*
rm -f $RPM_BUILD_ROOT/usr/share/man/*/man1/vim-enhancedtutor*
%clean
rm -rf $RPM_BUILD_ROOT;
%files
%defattr(-,root,root)
%config /etc/vimrc
/bin/ex
/bin/vi
/bin/vim
/bin/vitmp
/usr/bin/edit
/usr/bin/ex
/usr/bin/vi
/usr/bin/view
/usr/bin/vim
/usr/bin/xxd
/usr/bin/rview
/usr/bin/rvim
/usr/bin/vimtutor
/usr/bin/vimdiff
/usr/share/vim
%doc ANNOUNCEMENT*
%doc README.txt README_src.txt README_unix.txt README_lang.txt src/INSTALL
%doc vimrc_example1 vimrc_example2
%doc %{_mandir}/man1/*.1*
%doc %{_mandir}/[a-ln-z]*
%files -n gvim
%defattr(-,root,root)
%ghost %config(missingok) /etc/gvimrc
/usr/share/applications/gvim.desktop
/usr/share/pixmaps/gvim.png
/usr/X11R6/bin/gex
/usr/X11R6/bin/gvi
/usr/X11R6/bin/gview
/usr/X11R6/bin/gvim
/usr/X11R6/bin/rgview
/usr/X11R6/bin/rgvim
/usr/X11R6/bin/evim
/usr/X11R6/bin/egvim
/usr/X11R6/bin/gvimdiff
/usr/X11R6/bin/eview
%doc $RPM_SOURCE_DIR/README.SuSE $RPM_SOURCE_DIR/README.Japanese-XIM runtime/gvimrc_example.vim suse.gvimrc
%files enhanced
%defattr(-,root,root)
/usr/bin/vim-enhanced
%changelog -n vim
* Mon Nov 06 2006 - mkoenig@suse.de
- add apparmor syntax highlighting [#190084]
* Tue Oct 31 2006 - mkoenig@suse.de
- enable grub mode for different root dir [#113647]
* Tue Oct 24 2006 - mkoenig@suse.de
- added official patchs 077-146:
* minor bugfixes
- fix UUID matching in fstab syntax mode [#211238]
* Wed Aug 30 2006 - kssingvo@suse.de
- added official patches 067-076:
* undo problems when using input method
* 'ignorecase' is not used properly for Insert mode completion
* crash when setting 'guitablabel' to "%%!expand(\%%)"
* compiler warnings for shadowed and uninitialized variables
* using empty search pattern may cause a crash
* can't specify anything to do when starting the GUI fails
* CR in Insert mode completion may select original text
* (extra) Win32: tooltips can be in the wrong encoding
* winsaveview() could store wrong desired cursor column
* (after 7.0.010) could not get spell files from non-ftp server
* Wed Aug 23 2006 - kssingvo@suse.de
- added official patches 051-066:
* (after 7.0.44) compile and/or run problem with Perl interface
* the Vim server may expose more functionality than expected
* shortening multi-byte directory name may fail
* using an empty menu name may cause a crash
* ":startins" in CmdwinEnter autocmd doesn't work immediately
* can't use "#!" in Vim scripts to make them executable
* (extra, after 7.0.45) compilation trouble with Borland C 5.5
* gbk and gb18030 encodings are not recognized
* Perl interface doesn't compile with ActiveState Perl 5.8.8
* code for switching buffers is repeated in several places
* crash in Vim command completion when nothing to complete
* Mac: crash when using popup menu with spell error
* tiny chance for a memory leak
* compiler warnings for unused variables
* (extra) Mac: horizontal scroll wheel caused vertical scroll
* tab pages line not redrawn after removing the popup menu
* Wed Aug 09 2006 - kssingvo@suse.de
- fixed vim-enhaced package:
* builds now more conform
* without gui now
* removed unneccesary binaries introduced through rebuild
- added official patches 038-050:
* complete() can be used from expr. mapping after inserting text
* third argument for inputdialog() doesn't work in the console
* mouse selection with "z=" and inputlist() gets wrong entry
* cursor([1, 2]) failed, required third item in the list
* crash or hang when pasting a block in Insert mode
* "%%!" at start of 'statusline' didn't work
* Perl: changing a line in a non-current buffer may not work
* (extra) Win32: MSVC 2005 compiler warnings for OLE version
* the matchparen plugin didn't handle parens in single quotes
* the exit status of the configure script can be wrong
* the gzip plugin can't handle file names that have a paren
* some Tcl scripts are not recognized
* can't properly close a buffer through the NetBeans interface
- patch for ruby output on query of LDFLAGS
- fixed use_update_desktop_file: no longer destroys shell echo
* Fri Jul 21 2006 - schwab@suse.de
- Add /bin/ex [#193953].
- Fix file list.
* Wed Jul 12 2006 - kssingvo@suse.de
- added new official patches 036-037
- splitted vim-enhanced package with all features
* Tue Jul 11 2006 - kssingvo@suse.de
- update to 7.0
o Spell checking support for about 50 languages
o Intelligent completion for C, HTML, Ruby, Python, PHP, etc.
o Tab pages, each containing multiple windows
o Undo branches: never accidentally lose text again
o Vim script supports Lists and Dictionaries (similar to Python)
o Vim script profiling
o Improved Unicode support
o Highlighting of cursor line, cursor column and matching braces
o Translated manual pages support.
o Internal grep; works on all platforms, searches compressed files
o Browsing remote directories, zip and tar archives
o Printing multi-byte text
* Wed Jun 07 2006 - kssingvo@suse.de
- fix for crash in gui (bugzilla#182212)
* Sat Mar 18 2006 - jw@suse.de
- fixed bugzilla # 112930
no more segv upon svn commit.
* Fri Feb 24 2006 - hvogel@suse.de
- Dont package any gvimrc (except in %%doc), just use apps defaults.
Otherwise we will play default settings ping pong
forever [#152830]
* Thu Feb 02 2006 - rml@suse.de
- Make X selection again work in gvim (Bug #144109)
* Wed Feb 01 2006 - hvogel@suse.de
- generate help-tags tag during build
* Mon Jan 30 2006 - mmj@suse.de
- Add FreeMarker templates syntax highlighting [#144295]
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Sat Jan 14 2006 - schwab@suse.de
- Don't strip binaries.
* Thu Jan 12 2006 - mmj@suse.de
- Add patches 6.4.001 through 6.4.006
- Compile with -fstack-protector-all
* Wed Jan 11 2006 - mmj@suse.de
- Use a better gvimrc [#141096]
* Mon Dec 19 2005 - ro@suse.de
- remove unpackaged symlinks
* Mon Dec 05 2005 - mmj@suse.de
- Make sure SELinux is disabled
* Sun Oct 16 2005 - mmj@suse.de
- Update to vim-6.4 which is a pure bugfix release, no new features
was added (they all go to vim7)
- Disable selinux patch for now
* Thu Jul 21 2005 - mmj@suse.de
- Add pathes 6.3.76 through 6.3.84
* Tue Jul 19 2005 - lnussel@suse.de
- Don't strip binaries during install to get a useful debuginfo
package
* Thu Jul 07 2005 - mmj@suse.de
- Fix missing decl on vitmp.c
* Thu Jun 02 2005 - mmj@suse.de
- Add patches 6.3.59 through 6.3.75
* Tue Jan 25 2005 - mmj@suse.de
- Add patches 6.3.55 through 6.3.58
* Fri Jan 21 2005 - mmj@suse.de
- /bin/sh is bash on SUSE LINUX, so highlight as such [#49872]
* Thu Jan 20 2005 - mmj@suse.de
- Fix insecure tmp file handling [#50025]
* Fri Jan 07 2005 - mmj@suse.de
- Add patches 6.3.47 through 6.3.54
* Mon Dec 13 2004 - mmj@suse.de
- Add patches 6.3.044 to 6.0.46 from upstream [#49092]
- Explain that modelines enabling can be potentially evil
* Tue Dec 07 2004 - mmj@suse.de
- Add patches 6.3.032 to 6.0.43 from upstream
* Wed Nov 24 2004 - ro@suse.de
- use macro for python version
* Tue Nov 16 2004 - hvogel@suse.de
- add gvim icon
* Wed Nov 10 2004 - hvogel@suse.de
- fix the 'current' link to point to the right directory
* Fri Oct 22 2004 - mmj@suse.de
- Make the rpm versioning match what vim does itself
- Add patch 31 from upstream
* Tue Oct 19 2004 - mmj@suse.de
- locale no should correctly be nb so make it so
* Wed Oct 13 2004 - mmj@suse.de
- Include bugfixes up to and including patch 30
* Sat Sep 04 2004 - mmj@suse.de
- Include the latest bugfix patches 16-23
* Tue Aug 24 2004 - mmj@suse.de
- Also recognize "%%t" and "%%j" [#43985]
* Tue Aug 24 2004 - mmj@suse.de
- Make printf format string "%%z" be recognized and hilighted [#43985]
* Thu Aug 12 2004 - mmj@suse.de
- Update bugfixing patches including 12-15
* Sat Jul 03 2004 - mmj@suse.de
- Update bugfixing patches 001 through 011
* Tue Jun 08 2004 - mmj@suse.de
- Update to vim-6.3
* Fri May 07 2004 - mmj@suse.de
- Apply official patches up to including 531
* Mon May 03 2004 - mmj@suse.de
- Apply official patches up to including 521
* Tue Apr 13 2004 - mmj@suse.de
- Use extra again
- Apply official patches up to including 6.2.466
* Wed Mar 17 2004 - mmj@suse.de
- Apply patch from Juergen Weigert to make 'ga' work correctly with
UTF-8
* Wed Feb 25 2004 - kukuk@suse.de
- Fix version detection
- Fix SELinux patch (return code of one function)
* Mon Feb 23 2004 - mmj@suse.de
- Adjust patches to include up to 6.2.263
- Only patch SELinux on versions after 9.0
* Mon Feb 09 2004 - mmj@suse.de
- Add patches we want from 175 to 245
* Wed Jan 28 2004 - kukuk@suse.de
- Add SELinux patch
* Sat Jan 10 2004 - adrian@suse.de
- build as user
* Fri Jan 09 2004 - mmj@suse.de
- compile with "-fno-strict-aliasing"
* Fri Jan 09 2004 - mmj@suse.de
- add patches we want from 99 to 174
- regenerate patches
- add patch for fstab syntax highlighting [#33814]
* Wed Sep 17 2003 - fehr@suse.de
- add patches patches 91 to 98 from vim homepage
* Fri Sep 12 2003 - fehr@suse.de
- add patches patches 76 to 89 from vim homepage
(vim-6.2-altscreen.dif is therefore obsolete)
* Wed Sep 10 2003 - fehr@suse.de
- add patches patches 72 to 75 from vim homepage
* Wed Sep 03 2003 - mls@suse.de
- replace vim132 with bash version and delete post scriptlet
* Tue Aug 26 2003 - fehr@suse.de
- update ycp.vim and changes.vim
* Mon Aug 25 2003 - mls@suse.de
- fix aternate screen problem (again)
* Fri Aug 22 2003 - fehr@suse.de
- add patches patches 70 to 71 from vim homepage
* Sat Aug 16 2003 - adrian@suse.de
- install desktop file for gvim from kappfinder
* Fri Aug 15 2003 - mfabian@suse.de
- adapt vim-6.2-gvimrc-fontset.dif to the settings needed for
a gtk2 build. For most languages it is OK to set "guifontset"
to "monospace". But for Korean "monospace" expands to
"Baekmuk Gulim" with our current default settings and
this results in a very wide, broken spacing between the letters.
As this effect happens with many CJK fonts and the Latin glyphs
in many CJK fonts are ugly, set a good Latin font as the default
for CJK. This latin font is automatically combined with the
appropriate CJK font according to the rules in
/etc/fonts/fonts.conf. I choose "Luxi\ Mono" because this
is guaranteed to be installed always.
* Tue Aug 12 2003 - mmj@suse.de
- change the GUI to be built with gtk2
* Tue Aug 12 2003 - fehr@suse.de
- add liux relevant patches 15 - 69
* Wed Jul 16 2003 - fehr@suse.de
- create link eview to gvim
* Tue Jun 24 2003 - mmj@suse.de
- Update to 6.2 including:
· Support for GTK2
· Support for editing Arabic text
· ":try" command and exception handling
· Support for the neXtaw GUI toolkit
· Cscope support for Win32
· Support for PostScript printing in various 8-bit encodings
- Add non-Win32 patches from 1 - 14
* Tue May 27 2003 - fehr@suse.de
- remove unpackaged files from buildroot
* Fri May 23 2003 - fehr@suse.de
- add vitmp binary and man page to package
* Wed Apr 02 2003 - ro@suse.de
- updated python path
* Mon Mar 03 2003 - fehr@suse.de
- add patches 318 to 364 from ftp.vim.org
* Mon Feb 03 2003 - adrian@suse.de
- remove -mminimal-toc from RPM_OPT_FLAGS for ppc
- add patches 240 to 317 from ftp.vim.org
* Wed Jan 01 2003 - adrian@suse.de
- add a comment in the default vimrc to get the completion
behaviour as in bash (often asked).
* Mon Dec 16 2002 - fehr@suse.de
- add "modelines=0" to default vimrc because of security
considerations
* Fri Dec 13 2002 - ro@suse.de
- updated neededforbuild
* Thu Nov 07 2002 - mfabian@suse.de
- add patches 151 to 248 from ftp.vim.org (Bug #12157 is fixed
by patch 194, made by Michael Schroeder <mls@suse.de>)
* Wed Oct 30 2002 - agruen@suse.de
- Add dependency on acl-devel package so POSIX ACL support
is enabled.
* Tue Aug 20 2002 - mmj@suse.de
- Correct PreReq
* Wed Aug 07 2002 - werner@suse.de
- Fix vimrc for xterm and add some more keys (bug #15002)
* Tue Aug 06 2002 - fehr@suse.de
- add commands to vimrc to recognize last cursor position in a file
- add patches 033 to 150 from ftp.vim.org
* Fri Aug 02 2002 - adrian@suse.de
- do not handle vim and kvim together anymore
* Tue Jun 25 2002 - olh@suse.de
- build with -mminimal-toc on ppc64
* Wed Jun 05 2002 - ro@suse.de
- specify python config dir (not found on lib64 platforms)
* Thu Apr 25 2002 - fehr@suse.de
- make vim again read /etc/vimrc or /etc/gvimrc
- add patches 001 to 032 from ftp.vim.org
* Wed Apr 10 2002 - adrian@suse.de
- update to version 6.1
- remove obsolete patches
- clean xim.diff from patches which gone to the source
- add gui_kde support for kvim
* Tue Apr 02 2002 - fehr@suse.de
- remove disable_system.patch that prevent print menue entry in
gvim from working (#15355)
* Thu Mar 14 2002 - fehr@suse.de
- add patch 6.0.164 to patches
(After patch 6.0.135 the menu entries for pasting don't work in
Insert and Visual mode. Add <script> to allow script-local mappings.)
* Sun Mar 10 2002 - mfabian@suse.de
- fix typo in entry for Korean fontset which prevented the
gulim fonts from being used
* Mon Mar 04 2002 - mfabian@suse.de
- change default fontset entry for Korean to prevent core dump
in Korean locale.
Our previous default selected was
guifontset=-*-clean-bold-r-*--16-*-*-*-*-*-*-*,
-*-gulim-medium-r-*--16-*-*-*-*-*-*-*
but since XFree86 4.2.0 the 'clean-bold' pattern doesn't
match any iso8859-1 font anymore. Now it matches only:
-schumacher-clean-bold-r-normal--16-160-75-75-c-80-iso646.1991-irv
Because of this 'gvim' can't get any usable font, and
gui.char_width becomes 0. This leads to a division by 0
in function gui_resize_shell().
* Sun Mar 03 2002 - mfabian@suse.de
- add xim.diff from "Yasuhiro Matsumoto" <mattn_jp@hotmail.com>
This patch makes OnTheSpot input style perfectly usable for
Japanese, without the patch OnTheSpot input style is severely
broken.
* Thu Feb 28 2002 - kukuk@suse.de
- Add hack to avoid csh dependency
- Make beta-testers happy
* Sat Feb 23 2002 - mfabian@suse.de
- choose a different fontset for locales starting with 'zh'
(zh_TW, zh_CN, ...) because the new default fontset is not
suitable for these locales
* Thu Feb 21 2002 - fehr@suse.de
- change default fontset to use "iso8859-*" as encoding part
* Thu Feb 07 2002 - fehr@suse.de
- remove RPM_BUILD_ROOT path in man pages (#13054)
* Tue Feb 05 2002 - schwab@suse.de
- Don't add /usr/local/include and /usr/local/lib to search paths.
* Tue Jan 29 2002 - fehr@suse.de
- add patches 094 to 154 for vim 6.0 from ftp.vim.org
- syntax files changes.vim and ycp.vim are now separate source files
* Fri Dec 07 2001 - mfabian@suse.de
- add vim-6.0-euro-menu.dif which removes @euro when looking
for a menu translation for gvim. Without this,
"LC_ALL=de_DE@euro gvim" will show English menus
* Thu Nov 29 2001 - fehr@suse.de
- add patches 074 to 093 for vim 6.0 from ftp.vim.org
- add option nocompatible again to /etc/vimrc (defaults are simply
more usable this way)
* Thu Nov 29 2001 - mfabian@suse.de
- added NLS support again (vim-6.0-lang.tar.bz2 was not unpacked)
- applied fontset patch to /etc/gvimrc again
* Thu Nov 15 2001 - fehr@suse.de
- changed default vimrc according to suggestions of vim developer
* Mon Nov 05 2001 - fehr@suse.de
- added links vimdiff and gvimdiff
- added egvim link to /usr/X11R6/bin
- prevent use of tempname command in vimtutor
- add patches 001 to 072 for vim 6.0 from ftp.vim.org
* Fri Oct 19 2001 - mmj@suse.de
- Updated to 6.0
- Merges the gvim.spec and vim.spec into one specfile.
- Added a ppd.vim syntax file from bjacke@suse.de
* Tue Sep 11 2001 - mfabian@suse.de
- update to Vim 6.0av
(Bram Moolenaar: "Just bug fixes this time, and
quite a lot of them ...") For details about the bugs fixed,
please read /usr/share/doc/packages/vim/ANNOUNCEMENT.vim-6.0av
* Wed Aug 29 2001 - fehr@suse.de
- add new ycp sytax file from Michal Svec
- add extensions .scr and .yh as ycp extensions
* Tue Aug 28 2001 - mfabian@suse.de
- update to Vim 6.0at
- removed sf_warnings.dif (included upstream)
- add --with-features=big
- remove --enable-broken-locale
- remove --enable-fontset
- add BuildRoot
- add %%{?suse_update_config:%%{suse_update_config -f }}
* Thu Aug 16 2001 - fehr@suse.de
- update to new version 5.8 with patches 5.8.001 to 008 applied
- add syntax file for .changes files from Michal Svec
* Wed May 16 2001 - fehr@suse.de
- fix pointer-cast-warnings on 64bit archs
* Mon May 07 2001 - mfabian@suse.de
- bzip2 source
* Mon Apr 09 2001 - fehr@suse.de
- change back to old version 5.7 since 6.0aa is not stable enough
(according to maintainer Bram Moolenaar)
- add patches 001-028 from vim.org to vim 5.7
* Fri Apr 06 2001 - mfabian@suse.de
- add tarball for nls support: vim-6.0aa-lang.tar.bz2
- use suse_update_config
- remove --enable-broken-locale --enable-fontset
- add BuildRoot
- bzip2 tarballs
* Thu Apr 05 2001 - fehr@suse.de
- change to new version 6.0aa
* Mon Mar 26 2001 - kendy@suse.cz
- Added syntax file for YCP (YaST2 Communication Protocol)
* Mon Jan 08 2001 - fehr@suse.de
- change occurences of $VIM in vimrc example to $VIMRUNTIME
* Tue Nov 21 2000 - werner@suse.de
- Remove swapping of kp-separator/kp-decimal because it's
done in xkbd map for german keyboards
- Add some newer xterm escape sequences (oldFunctionsKeys)
* Fri Oct 06 2000 - kukuk@suse.de
- change group tag
* Mon Jul 24 2000 - fehr@suse.de
- New version 5.7
* Wed Mar 01 2000 - werner@suse.de
- Move vim and the link vi to /bin/ and make symlinks backward
- Include symlinks edit and ex into vim file list
- Include symlinks gex, gvi, gview, rgvim, rgview into gvim file list
- Make symlink current to version directory in /usr/share/vim
* Tue Feb 29 2000 - fehr@suse.de
- removed use of mouse daemon (libgpm)
* Thu Feb 24 2000 - fehr@suse.de
- removed dependency on nawk
* Tue Jan 25 2000 - werner@suse.de
- New version 5.6
- Do not use strange settings in /etc/vimrc (e.g. edcompatible)
- Make terminal settings in /etc/vimrc depending on terminal type
- Create a ~/.vimrc for /etc/skel/
- /usr/man -> /usr/share/man
* Wed Jan 12 2000 - fehr@suse.de
- fix wrong path in /etc/vimrc
* Fri Nov 05 1999 - kukuk@suse.de
- Use gawk instead of nawk
* Sat Oct 16 1999 - ml@suse.de
- removed typo from vim-5.4.dif
* Thu Sep 16 1999 - ro@suse.de
- added "Provides vi_clone"
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Fri Aug 27 1999 - fehr@suse.de
- changed to new version 5.4
* Sun Dec 13 1998 - bs@suse.de
- fixed problem with empty man page
* Fri Dec 04 1998 - ro@suse.de
- cleanup and bugfix for suse.vimrc
* Mon Nov 23 1998 - ro@suse.de
- update to 5.3
- merged werners vimrc and florian's hack for linux-m
- install other vimrc_example as %%doc
* Fri Oct 17 1997 - ro@suse.de
- ready for autobuild using 4.6tar and 4.6dif
* Wed May 28 1997 - werner@suse.de
- New /etc/vimrc added
* Sun Apr 13 1997 - florian@suse.de
- update to new version 4.6
- mv ctags into a new package ctags.tgz
* Thu Jan 02 1997 - florian@suse.de
- Update auf Version 4.5.
- Jetzt ist auch ctags und xxd dabei.
* Thu Jan 02 1997 - florian@suse.de
new version 4.2
completely integrated help-system

10
vim132 Normal file
View File

@ -0,0 +1,10 @@
#!/bin/sh
#
# Shell script for use with UNIX
# Starts up Vim with the terminal in 132 column mode
# Only works on VT-100 terminals and lookalikes
# You need to have a termcap entry "vt100-w". Same as vt100 but 132 columns.
#
echo "[?3h"
TERM=vt100-w vim "$@"
echo "[?3l"

161
vimrc_example1 Normal file
View File

@ -0,0 +1,161 @@
" Vim
" An example for a vimrc file.
"
" To use it, copy it to
" for Unix and OS/2: ~/.vimrc
" for Amiga: s:.vimrc
" for MS-DOS and Win32: $VIM\_vimrc
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 showmatch " jump emacs style to matching bracket
"these characters can move past end of line
:set whichwrap=b,s,h,l
"default tabs are too wide IMO. uncomment to change them
" :set tabstop=6
" In text files, always limit the width of text to 78 characters
autocmd BufRead *.txt set tw=78
" For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries
" let &guioptions = substitute(&guioptions, "t", "", "g")
" 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
augroup cprog
" Remove all cprog autocommands
au!
" When starting to edit a file:
" For *.c and *.h 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 BufRead * set formatoptions=tcql nocindent comments&
autocmd BufRead *.c,*.h 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 <afile> <afile>:r
autocmd BufWritePost,FileWritePost *.gz !gzip <afile>:r
autocmd FileAppendPre *.gz !gunzip <afile>
autocmd FileAppendPre *.gz !mv <afile>:r <afile>
autocmd FileAppendPost *.gz !mv <afile> <afile>:r
autocmd FileAppendPost *.gz !gzip <afile>:r
augroup END
"let bash_is_sh = 1
"let is_bash = 1
" Uncomment to turn off arrow keys. Using arrow keys is a good habit to
" get out of ...
":map <left> <Nop>
":map <right> <Nop>
":map <up> <Nop>
":map <down> <Nop>
":imap <left> <Nop>
":imap <right> <Nop>
":imap <up> <Nop>
":imap <down> <Nop>
" Some emacs/pico like keybindings for insert mode
":imap <C-A> <ESC>0i
":imap <C-E> <ESC>$a
":imap <C-P> <ESC>ki
":imap <C-N> <ESC>ji
":imap <C-B> <ESC>la
":imap <C-F> <ESC>ha
" Some highlighting definitions
" THis is the default.
" Doesn't use colours wisely IMO. Consider changing Repeat and Conditional
" to make them stand out a little better.
" There are two sets of defaults: for a dark and a light background.
if &background == "dark"
hi Comment term=bold ctermfg=Cyan guifg=#80a0ff
hi Constant term=underline ctermfg=Magenta guifg=#ffa0a0
hi Special term=bold ctermfg=LightRed guifg=Orange
hi Identifier term=underline cterm=bold ctermfg=Cyan guifg=#40ffff
hi Statement term=bold ctermfg=Yellow guifg=#ffff60 gui=bold
hi PreProc term=underline ctermfg=LightBlue guifg=#ff80ff
hi Type term=underline ctermfg=LightGreen guifg=#60ff60 gui=bold
hi Ignore ctermfg=black guifg=bg
else
hi Comment term=bold ctermfg=DarkBlue guifg=Blue
hi Constant term=underline ctermfg=DarkRed guifg=Magenta
hi Special term=bold ctermfg=DarkMagenta guifg=SlateBlue
hi Identifier term=underline ctermfg=DarkCyan guifg=DarkCyan
hi Statement term=bold ctermfg=Brown gui=bold guifg=Brown
hi PreProc term=underline ctermfg=DarkMagenta guifg=Purple
hi Type term=underline ctermfg=DarkGreen guifg=SeaGreen gui=bold
hi Ignore ctermfg=white guifg=bg
endif
hi Error term=reverse ctermbg=Red ctermfg=White guibg=Red guifg=White
hi Todo term=standout ctermbg=Yellow ctermfg=Black guifg=Blue guibg=Yellow
" Common groups that link to default highlighting.
" You can specify other highlighting easily.
hi link String Constant
hi link Character Constant
hi link Number Constant
hi link Boolean Constant
hi link Float Number
hi link Function Identifier
hi link Conditional Statement
hi link Repeat Statement
hi link Label Statement
hi link Operator Statement
hi link Keyword Statement
hi link Exception Statement
hi link Include PreProc
hi link Define PreProc
hi link Macro PreProc
hi link PreCondit PreProc
hi link StorageClass Type
hi link Structure Type
hi link Typedef Type
hi link Tag Special
hi link SpecialChar Special
hi link Delimiter Special
hi link SpecialComment Special
hi link Debug Special

1530
vimrc_example2 Normal file

File diff suppressed because it is too large Load Diff

38
vitmp.1 Normal file
View File

@ -0,0 +1,38 @@
.\" $Id: vitmp.1,v 1.2 2002/10/12 12:03:51 solar Exp $
.TH VITMP 1 "25 April 2002" "Openwall Project"
.SH NAME
vitmp \- edit temporary files
.SH SYNOPSIS
.B vitmp
.RI [ "VIM options" "] " FILE ...
.SH DESCRIPTION
.B vitmp
is a wrapper around the VIM editor which may be used to invoke the
editor in a way that is guaranteed to be suitable for editing temporary
files used with programs such as
.BR crontab (1)
and
.BR edquota (8).
The instance of the editor that is invoked is
.IR /bin/vi .
.PP
In particular, it is guaranteed that the file, if edited, will be
overwritten in place such that the modified contents may be read back
via a previously obtained file descriptor. Invoking the editor via
.B vitmp
also makes sure that no additional editor temporary files are used.
.PP
Please note that
.B vitmp
offers no crash recovery capabilities. If the editor crashes during
the overwrite, data may be lost.
.SH HISTORY
.B vitmp
first appeared in Openwall GNU/*/Linux 1.0.
.SH AUTHORS
Solar Designer <solar@owl.openwall.com>
.SH SEE ALSO
.BR crontab (1),
.BR vi (1),
.BR vim (1),
.BR edquota (8)

30
vitmp.c Normal file
View File

@ -0,0 +1,30 @@
/*
* This is a wrapper around the VIM editor which may be used to invoke
* the editor in a way that is guaranteed to be suitable for editing
* temporary files used with programs such as crontab(1) and edquota(8).
*
* Written by Solar Designer <solar@owl.openwall.com> and placed in the
* public domain.
*
* $Id: vitmp.c,v 1.2 2002/04/24 23:11:34 solar Exp $
*/
#include <stdio.h>
#include <unistd.h>
#include <string.h>
int main(int argc, const char * const *argv)
{
char *newargv[argc + 4]; /* GNU C */
newargv[0] = "/bin/vi";
/* No swap files, use memory only */
newargv[1] = "-n";
/* Don't make a backup before overwriting a file */
newargv[2] = "-c"; newargv[3] = "set nowritebackup";
memcpy(&newargv[4], &argv[1], argc * sizeof(char *));
execv(newargv[0], newargv);
perror("execv");
return 1;
}

386
ycp.vim Normal file
View File

@ -0,0 +1,386 @@
" Vim syntax file
" Filename: ycp.vim
" Language: YCP: SuSE YaST2 scripting language
" Maintainer: Michal Svec <msvec@suse.cz>
" Last change: 20.8.2003
" Remove any old syntax stuff hanging around
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
" YCP statements
syn keyword ycpStatement break return continue define global
syn keyword ycpStatement module import include textdomain
" YCP conditionals
syn keyword ycpConditional if else
syn keyword ycpRepeat while do repeat until
" YCP todos
syn keyword ycpTodo contained TODO FIXME XXX
" YCP string and character constants
syn match ycpSpecial contained "\\x\x\+\|\\\o\{1,3\}\|\\.\|\\$"
syn region ycpString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=ycpSpecial
syn match ycpCharacter "'[^\\]'"
syn match ycpSpecialCharacter "'\\.'"
syn match ycpSpecialCharacter "'\\\o\{1,3\}'"
" errors caused by wrong parenthesis
syn match ycpInParen contained "[{}]"
" YCP numbers
syn case ignore
" integer number, or floating point number without a dot and with "f".
syn match ycpNumber "\<\d\+\(u\=l\=\|lu\|f\)\>"
" floating point number, with dot, optional exponent
syn match ycpFloat "\<\d\+\.\d*\(e[-+]\=\d\+\)\=[fl]\=\>"
" floating point number, starting with a dot, optional exponent
syn match ycpFloat "\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>"
" floating point number, without dot, with exponent
syn match ycpFloat "\<\d\+e[-+]\=\d\+[fl]\=\>"
" hex number
syn match ycpNumber "\<0x\x\+\(u\=l\=\|lu\)\>"
" identifier
" syn match ycpIdentifier "\<[a-z_][a-z0-9_]*\>"
syn case match
" flag an octal number with wrong digits
syn match ycpOctalError "\<0\o*[89]"
" YCP coding errors
syn match ycpSpaceError excludenl "\s\+$"
syn match ycpSpaceError " \+\t"me=e-1
syn match ycpCommentError "\*/"
" YCP comments
syn region ycpComment start="/\*" end="\*/" contains=ycpTodo,ycpSpaceError
syn match ycpComment "//.*" contains=ycpTodo,ycpCommentError,ycpSpaceError
"Operators and builtin functions
syn keyword ycpBuiltin is select remove change contains
syn keyword ycpBuiltin setcontains lookup haskey add union merge size
syn keyword ycpBuiltin symbolof sleep foreach filter maplist mapmap
syn keyword ycpBuiltin flatten toset sort sformat tointeger
syn keyword ycpBuiltin crypt cryptmd5 cryptbigcrypt cryptblowfish
syn keyword ycpBuiltin eval find isnil
syn keyword ycpBuiltin random srandom
" WFM builtins
syn keyword ycpBuiltin WFM UI SCR Args
syn keyword ycpBuiltin Read Write Dir Execute
syn keyword ycpBuiltin CallFunction CallModule SetLanguage GetLanguage
syn keyword ycpBuiltin SCROpen SCRClose SCRGetName GetClientName
syn keyword ycpBuiltin SCRSetDefault SCRGetDefault
" SCR builtins
syn keyword ycpBuiltin RegisterAgent
syn keyword ycpBuiltin UnregisterAgent UnregisterAllAgents
syn keyword ycpBuiltin MountAgent MountAllAgents
syn keyword ycpBuiltin UnmountAgent UnmountAllAgents
syn keyword ycpBuiltin YaST2Version SuSEVersion
" YUI builtins
syn keyword ycpBuiltin AskForExistingDirectory
syn keyword ycpBuiltin AskForExistingFile
syn keyword ycpBuiltin AskForSaveFileName
syn keyword ycpBuiltin BusyCursor
syn keyword ycpBuiltin ChangeWidget
syn keyword ycpBuiltin CheckShortcuts
syn keyword ycpBuiltin CloseDialog
syn keyword ycpBuiltin DumpWidgetTree
syn keyword ycpBuiltin FakeUserInput
syn keyword ycpBuiltin GetDisplayInfo
syn keyword ycpBuiltin GetLanguage
syn keyword ycpBuiltin GetModulename
syn keyword ycpBuiltin GetProductName
syn keyword ycpBuiltin Glyph
syn keyword ycpBuiltin HasSpecialWidget
syn keyword ycpBuiltin MakeScreenShot
syn keyword ycpBuiltin NormalCursor
syn keyword ycpBuiltin OpenDialog
syn keyword ycpBuiltin PlayMacro
syn keyword ycpBuiltin PollInput
syn keyword ycpBuiltin PostponeShortcutCheck
syn keyword ycpBuiltin QueryWidget
syn keyword ycpBuiltin RecalcLayout
syn keyword ycpBuiltin Recode
syn keyword ycpBuiltin RecordMacro
syn keyword ycpBuiltin RedrawScreen
syn keyword ycpBuiltin ReplaceWidget
syn keyword ycpBuiltin RunPkgSelection
syn keyword ycpBuiltin SetConsoleFont
syn keyword ycpBuiltin SetFocus
syn keyword ycpBuiltin SetFunctionKeys
syn keyword ycpBuiltin SetKeyboard
syn keyword ycpBuiltin SetLanguage
syn keyword ycpBuiltin SetModulename
syn keyword ycpBuiltin SetProductName
syn keyword ycpBuiltin StopRecordMacro
syn keyword ycpBuiltin TimeoutUserInput
syn keyword ycpBuiltin UserInput
syn keyword ycpBuiltin WaitForEvent
syn keyword ycpBuiltin WidgetExists
" YCP builtins
syn keyword ycpBuiltin contains
syn keyword ycpBuiltin haskey
syn keyword ycpBuiltin filter
syn keyword ycpBuiltin find
syn keyword ycpBuiltin maplist
syn keyword ycpBuiltin flatten
syn keyword ycpBuiltin sort
syn keyword ycpBuiltin toset
syn keyword ycpBuiltin tointeger
syn keyword ycpBuiltin tofloat
syn keyword ycpBuiltin tostring
syn keyword ycpBuiltin topath
syn keyword ycpBuiltin toterm
syn keyword ycpBuiltin crypt
syn keyword ycpBuiltin cryptmd5
syn keyword ycpBuiltin cryptbigcrypt
syn keyword ycpBuiltin cryptblowfish
syn keyword ycpBuiltin timestring
syn keyword ycpBuiltin substring
syn keyword ycpBuiltin findfirstof
syn keyword ycpBuiltin findlastof
syn keyword ycpBuiltin findfirstnotof
syn keyword ycpBuiltin findlastnotof
syn keyword ycpBuiltin tolower
syn keyword ycpBuiltin toupper
syn keyword ycpBuiltin toascii
syn keyword ycpBuiltin filterchars
syn keyword ycpBuiltin deletechars
syn keyword ycpBuiltin time
syn keyword ycpBuiltin sleep
syn keyword ycpBuiltin random
syn keyword ycpBuiltin srandom
syn keyword ycpBuiltin sformat
syn keyword ycpBuiltin issubstring
syn keyword ycpBuiltin regexpmatch
syn keyword ycpBuiltin regexppos
syn keyword ycpBuiltin splitstring
syn keyword ycpBuiltin mergestring
syn keyword ycpBuiltin mapmap
syn keyword ycpBuiltin prepend
syn keyword ycpBuiltin listmap
syn keyword ycpBuiltin y2debug
syn keyword ycpBuiltin y2milestone
syn keyword ycpBuiltin y2warning
syn keyword ycpBuiltin regexpsub
syn keyword ycpBuiltin y2error
syn keyword ycpBuiltin y2security
syn keyword ycpBuiltin y2internal
syn keyword ycpBuiltin regexptokenize
syn keyword ycpBuiltin tohexstring
" YCP types
syn keyword ycpType any void boolean integer float string locale
syn keyword ycpType symbol list map term path block declaration
syn keyword ycpType expression byteblock
" YCP boolean
syn keyword ycpBoolean true false nil
" YCP widgets
syn keyword ycpWidget Bottom
syn keyword ycpWidget CheckBox
syn keyword ycpWidget ComboBox
syn keyword ycpWidget Empty
syn keyword ycpWidget Frame
syn keyword ycpWidget HBox
syn keyword ycpWidget HCenter
syn keyword ycpWidget HSpacing
syn keyword ycpWidget HSquash
syn keyword ycpWidget HStretch
syn keyword ycpWidget HVCenter
syn keyword ycpWidget HVSquash
syn keyword ycpWidget HVStretch
syn keyword ycpWidget HWeight
syn keyword ycpWidget Heading
syn keyword ycpWidget IconButton
syn keyword ycpWidget Image
syn keyword ycpWidget IntField
syn keyword ycpWidget Label
syn keyword ycpWidget Left
syn keyword ycpWidget LogView
syn keyword ycpWidget MenuButton
syn keyword ycpWidget MultiLineEdit
syn keyword ycpWidget MultiSelectionBox
syn keyword ycpWidget PackageSelector
syn keyword ycpWidget Password
syn keyword ycpWidget ProgressBar
syn keyword ycpWidget PushButton
syn keyword ycpWidget RadioButton
syn keyword ycpWidget RadioButtonGroup
syn keyword ycpWidget ReplacePoint
syn keyword ycpWidget RichText
syn keyword ycpWidget Right
syn keyword ycpWidget SelectionBox
syn keyword ycpWidget Table
syn keyword ycpWidget TextEntry
syn keyword ycpWidget Top
syn keyword ycpWidget Tree
syn keyword ycpWidget VBox
syn keyword ycpWidget VCenter
syn keyword ycpWidget VSpacing
syn keyword ycpWidget VSquash
syn keyword ycpWidget VStretch
syn keyword ycpWidget VWeight
syn keyword ycpWidget PkgSpecial
syn keyword ycpWidget BarGraph
syn keyword ycpWidget ColoredLabel
syn keyword ycpWidget DownloadProgress
syn keyword ycpWidget DummySpecialWidget
syn keyword ycpWidget PartitionSplitter
syn keyword ycpWidget Slider
syn keyword ycpWidget CurrentButton
syn keyword ycpWidget CurrentItem
syn keyword ycpWidget Enabled
syn keyword ycpWidget ExpectedSize
syn keyword ycpWidget Filename
syn keyword ycpWidget Item
syn keyword ycpWidget Items
syn keyword ycpWidget Label
syn keyword ycpWidget Labels
syn keyword ycpWidget LastLine
syn keyword ycpWidget Notify
syn keyword ycpWidget SelectedItems
syn keyword ycpWidget ValidChars
syn keyword ycpWidget Value
syn keyword ycpWidget Values
syn keyword ycpWidget WindowID
syn keyword ycpWidget EasterEgg
" YCP widget specials
syn keyword ycpWidgetSpecial animated
syn keyword ycpWidgetSpecial autoScrollDown
syn keyword ycpWidgetSpecial autoShortcut
syn keyword ycpWidgetSpecial countShowDelta
syn keyword ycpWidgetSpecial debugLayout
syn keyword ycpWidgetSpecial decorated
syn keyword ycpWidgetSpecial default
syn keyword ycpWidgetSpecial defaultsize
syn keyword ycpWidgetSpecial disabled
syn keyword ycpWidgetSpecial easterEgg
syn keyword ycpWidgetSpecial editable
syn keyword ycpWidgetSpecial hstretch
syn keyword ycpWidgetSpecial hvstretch
syn keyword ycpWidgetSpecial immediate
syn keyword ycpWidgetSpecial infocolor
syn keyword ycpWidgetSpecial keepSorting
syn keyword ycpWidgetSpecial notify
syn keyword ycpWidgetSpecial outputField
syn keyword ycpWidgetSpecial plainText
syn keyword ycpWidgetSpecial scaleToFit
syn keyword ycpWidgetSpecial shrinkable
syn keyword ycpWidgetSpecial testMode
syn keyword ycpWidgetSpecial tiled
syn keyword ycpWidgetSpecial updateMode
syn keyword ycpWidgetSpecial vstretch
syn keyword ycpWidgetSpecial warncolor
syn keyword ycpWidgetSpecial youMode
syn keyword ycpWidgetSpecial zeroHeight
syn keyword ycpWidgetSpecial zeroWidth
syn keyword ycpWidgetSpecial key_F1
syn keyword ycpWidgetSpecial key_F2
syn keyword ycpWidgetSpecial key_F3
syn keyword ycpWidgetSpecial key_F4
syn keyword ycpWidgetSpecial key_F5
syn keyword ycpWidgetSpecial key_F6
syn keyword ycpWidgetSpecial key_F7
syn keyword ycpWidgetSpecial key_F8
syn keyword ycpWidgetSpecial key_F9
syn keyword ycpWidgetSpecial key_F10
syn keyword ycpWidgetSpecial key_F11
syn keyword ycpWidgetSpecial key_F12
syn keyword ycpWidgetSpecial key_F13
syn keyword ycpWidgetSpecial key_F14
syn keyword ycpWidgetSpecial key_F15
syn keyword ycpWidgetSpecial key_F16
syn keyword ycpWidgetSpecial key_F17
syn keyword ycpWidgetSpecial key_F18
syn keyword ycpWidgetSpecial key_F19
syn keyword ycpWidgetSpecial key_F20
syn keyword ycpWidgetSpecial key_F21
syn keyword ycpWidgetSpecial key_F22
syn keyword ycpWidgetSpecial key_F23
syn keyword ycpWidgetSpecial key_F24
syn keyword ycpWidgetSpecial key_none
syn keyword ycpWidgetSpecial ArrowLeft
syn keyword ycpWidgetSpecial ArrowRight
syn keyword ycpWidgetSpecial ArrowUp
syn keyword ycpWidgetSpecial ArrowDown
syn keyword ycpWidgetSpecial CheckMark
syn keyword ycpWidgetSpecial BulletArrowRight
syn keyword ycpWidgetSpecial BulletCircle
syn keyword ycpWidgetSpecial BulletSquare
syn keyword ycpWidgetSpecial id
syn keyword ycpWidgetSpecial opt
syn keyword ycpWidgetSpecial item
syn keyword ycpWidgetSpecial menu
syn keyword ycpWidgetSpecial header
syn keyword ycpWidgetSpecial rgb
" comment miniles
if !exists("c_minlines")
let c_minlines = 15
endif
exec "syn sync ccomment cComment minlines=" . c_minlines
" highliting colors
if version >= 508 || !exists("did_basic_syntax_inits")
if version < 508
let did_basic_syntax_inits = 1
command -nargs=+ HiLink hi link <args>
else
command -nargs=+ HiLink hi def link <args>
endif
HiLink ycpLabel Label
HiLink ycpUserLabel Label
HiLink ycpConditional Conditional
HiLink ycpRepeat Repeat
HiLink ycpCharacter Character
HiLink ycpSpecialCharacter ycpSpecial
HiLink ycpNumber Number
HiLink ycpFloat Float
HiLink ycpOctalError ycpError
HiLink ycpParenError ycpError
HiLink ycpInParen ycpError
HiLink ycpCommentError ycpError
HiLink ycpSpaceError ycpError
HiLink ycpBuiltin Operator
HiLink ycpStructure Structure
HiLink ycpStorageClass StorageClass
HiLink ycpInclude Include
HiLink ycpPreProc PreProc
HiLink ycpDefine Macro
HiLink ycpIncluded ycpString
HiLink ycpError Error
HiLink ycpStatement Statement
HiLink ycpPreCondit PreCondit
HiLink ycpType Type
HiLink ycpCommentError ycpError
HiLink ycpCommentSkip ycpComment
HiLink ycpString String
HiLink ycpComment Comment
HiLink ycpSpecial SpecialChar
HiLink ycpTodo Todo
HiLink ycpWidget Function
HiLink ycpWidgetSpecial Special
HiLink ycpBoolean Boolean
delcommand HiLink
endif
" syntax name
let b:current_syntax = "ycp"