Compare commits
1 Commits
Author | SHA256 | Date | |
---|---|---|---|
49e3942d27 |
45
apparmor.vim
45
apparmor.vim
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
" ----------------------------------------------------------------------
|
" ----------------------------------------------------------------------
|
||||||
" Copyright (c) 2005 Novell, Inc. All Rights Reserved.
|
" Copyright (c) 2005 Novell, Inc. All Rights Reserved.
|
||||||
" Copyright (c) 2006-2023 Christian Boltz. All Rights Reserved.
|
" Copyright (c) 2006-2012 Christian Boltz. All Rights Reserved.
|
||||||
"
|
"
|
||||||
" This program is free software; you can redistribute it and/or
|
" This program is free software; you can redistribute it and/or
|
||||||
" modify it under the terms of version 2 of the GNU General Public
|
" modify it under the terms of version 2 of the GNU General Public
|
||||||
@@ -17,9 +17,14 @@
|
|||||||
" You should have received a copy of the GNU General Public License
|
" You should have received a copy of the GNU General Public License
|
||||||
" along with this program; if not, contact Novell, Inc.
|
" along with this program; if not, contact Novell, Inc.
|
||||||
"
|
"
|
||||||
" If you want to report a bug for apparmor.vim, please do so at
|
" To contact Novell about this file by physical or electronic mail,
|
||||||
" - https://gitlab.com/apparmor/apparmor/ or
|
" you may find current contact information at www.novell.com.
|
||||||
" - https://bugzilla.opensuse.org (assign it to suse-beta[AT]cboltz.de)
|
"
|
||||||
|
" To contact Christian Boltz about this file by physical or electronic
|
||||||
|
" mail, you may find current contact information at www.cboltz.de/en/kontakt.
|
||||||
|
"
|
||||||
|
" If you want to report a bug via bugzilla.novell.com, please assign it
|
||||||
|
" to suse-beta[AT]cboltz.de (replace [AT] with @).
|
||||||
" ----------------------------------------------------------------------
|
" ----------------------------------------------------------------------
|
||||||
"
|
"
|
||||||
" stick this file into ~/.vim/syntax/ and add these commands into your .vimrc
|
" stick this file into ~/.vim/syntax/ and add these commands into your .vimrc
|
||||||
@@ -47,7 +52,6 @@ syntax case match
|
|||||||
" hi sdComment2 ctermfg=darkblue
|
" hi sdComment2 ctermfg=darkblue
|
||||||
hi sdGlob ctermfg=darkmagenta
|
hi sdGlob ctermfg=darkmagenta
|
||||||
hi sdAlias ctermfg=darkmagenta
|
hi sdAlias ctermfg=darkmagenta
|
||||||
hi sdAll ctermfg=darkred ctermbg=yellow
|
|
||||||
hi sdEntryWriteExec ctermfg=black ctermbg=yellow
|
hi sdEntryWriteExec ctermfg=black ctermbg=yellow
|
||||||
hi sdEntryUX ctermfg=darkred cterm=underline
|
hi sdEntryUX ctermfg=darkred cterm=underline
|
||||||
hi sdEntryUXe ctermfg=darkred
|
hi sdEntryUXe ctermfg=darkred
|
||||||
@@ -63,7 +67,6 @@ syntax case match
|
|||||||
hi sdCapKey cterm=underline ctermfg=lightblue
|
hi sdCapKey cterm=underline ctermfg=lightblue
|
||||||
hi sdCapDanger ctermfg=darkred
|
hi sdCapDanger ctermfg=darkred
|
||||||
hi sdRLimit ctermfg=lightblue
|
hi sdRLimit ctermfg=lightblue
|
||||||
hi sdUserns ctermfg=darkred
|
|
||||||
hi def link sdEntryR Normal
|
hi def link sdEntryR Normal
|
||||||
hi def link sdEntryK Normal
|
hi def link sdEntryK Normal
|
||||||
hi def link sdFlags Normal
|
hi def link sdFlags Normal
|
||||||
@@ -109,7 +112,7 @@ syn match sdError /^.*$/ contains=sdComment "highlight all non-valid lines as er
|
|||||||
|
|
||||||
" TODO: the sdGlob pattern is not anchored with ^ and $, so it matches all lines matching ^@{...}.*
|
" TODO: the sdGlob pattern is not anchored with ^ and $, so it matches all lines matching ^@{...}.*
|
||||||
" This allows incorrect lines also and should be checked better.
|
" This allows incorrect lines also and should be checked better.
|
||||||
" This also (accidentally ;-) includes variable definitions (@{FOO}=/bar)
|
" This also (accidently ;-) includes variable definitions (@{FOO}=/bar)
|
||||||
" TODO: make a separate pattern for variable definitions, then mark sdGlob as contained
|
" TODO: make a separate pattern for variable definitions, then mark sdGlob as contained
|
||||||
syn match sdGlob /\v\?|\*|\{.*,.*\}|[[^\]]\+\]|\@\{[a-zA-Z][a-zA-Z0-9_]*\}/
|
syn match sdGlob /\v\?|\*|\{.*,.*\}|[[^\]]\+\]|\@\{[a-zA-Z][a-zA-Z0-9_]*\}/
|
||||||
|
|
||||||
@@ -117,18 +120,11 @@ syn match sdAlias /\v^\s*alias\s+(\/|\@\{\S*\})\S*\s+-\>\s+(\/|\@\{\S*\})\S*\s*,
|
|||||||
|
|
||||||
" syn match sdComment /#.*/
|
" syn match sdComment /#.*/
|
||||||
|
|
||||||
" List of all (supported) rules inside a profile.
|
syn cluster sdEntry contains=sdEntryWriteExec,sdEntryR,sdEntryW,sdEntryIX,sdEntryPX,sdEntryPXe,sdEntryUX,sdEntryUXe,sdEntryM,sdCap,sdSetCap,sdExtHat,sdRLimit,sdNetwork,sdNetworkDanger,sdEntryChangeProfile
|
||||||
" XXX When adding support for a new rule type, also add it here. XXX
|
|
||||||
" XXX Otherwise it will be highlighted as an error. XXX
|
|
||||||
syn cluster sdEntry contains=sdAll,sdEntryWriteExec,sdEntryR,sdEntryW,sdEntryIX,sdEntryPX,sdEntryPXe,sdEntryUX,sdEntryUXe,sdEntryM,sdCap,sdSetCap,sdExtHat,sdRLimit,sdNetwork,sdNetworkDanger,sdEntryChangeProfile,sdUserns
|
|
||||||
|
|
||||||
|
|
||||||
" TODO: support audit and deny keywords for all rules (not only for files)
|
" TODO: support audit and deny keywords for all rules (not only for files)
|
||||||
" TODO: highlight audit and deny keywords everywhere
|
" TODO: higlight audit and deny keywords everywhere
|
||||||
|
|
||||||
" 'all' rule
|
|
||||||
syn match sdAll /\v^\s*(audit\s+)?(deny\s+|allow\s+)?all\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdComment nextgroup=@sdEntry,sdComment,sdError,sdInclude
|
|
||||||
|
|
||||||
|
|
||||||
" Capability line
|
" Capability line
|
||||||
|
|
||||||
@@ -166,13 +162,10 @@ syn match sdRLimit /\v^\s*set\s+rlimit\s+(nofile|ofile|nproc|rtprio)\s+\<\=\s+[0
|
|||||||
syn match sdRLimit /\v^\s*set\s+rlimit\s+(locks|sigpending)\s+\<\=\s+[0-9]+\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdComment
|
syn match sdRLimit /\v^\s*set\s+rlimit\s+(locks|sigpending)\s+\<\=\s+[0-9]+\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdComment
|
||||||
syn match sdRLimit /\v^\s*set\s+rlimit\s+(fsize|data|stack|core|rss|as|memlock|msgqueue)\s+\<\=\s+[0-9]+([KMG]B)?\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdComment
|
syn match sdRLimit /\v^\s*set\s+rlimit\s+(fsize|data|stack|core|rss|as|memlock|msgqueue)\s+\<\=\s+[0-9]+([KMG]B)?\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdComment
|
||||||
syn match sdRLimit /\v^\s*set\s+rlimit\s+nice\s+\<\=\s+(-1?[0-9]|-20|1?[0-9])\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdComment
|
syn match sdRLimit /\v^\s*set\s+rlimit\s+nice\s+\<\=\s+(-1?[0-9]|-20|1?[0-9])\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdComment
|
||||||
syn match sdRLimit /\v^\s*set\s+rlimit\s+cpu\s+\<\=\s+[0-9]+\s*(s|sec|second|seconds|min|minute|minutes|h|hour|hours|d|day|days|week|weeks)?\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdComment
|
syn match sdRLimit /\v^\s*set\s+rlimit\s+cpu\s+\<\=\s+[0-9]+(seconds|minutes|hours|days)?\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdComment
|
||||||
syn match sdRLimit /\v^\s*set\s+rlimit\s+rttime\s+\<\=\s+[0-9]+\s*(us|microsecond|microseconds|ms|millisecond|milliseconds|s|sec|second|seconds|min|minute|minutes|h|hour|hours|d|day|days|week|weeks)?\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdComment
|
syn match sdRLimit /\v^\s*set\s+rlimit\s+rttime\s+\<\=\s+[0-9]+(ms|seconds|minutes)?\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdComment
|
||||||
syn match sdRLimit /\v^\s*set\s+rlimit\s+(cpu|rttime|nofile|nproc|rtprio|locks|sigpending|fsize|data|stack|core|rss|as|memlock|msgqueue|nice)\s+\<\=\s+infinity\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdComment
|
syn match sdRLimit /\v^\s*set\s+rlimit\s+(cpu|rttime|nofile|nproc|rtprio|locks|sigpending|fsize|data|stack|core|rss|as|memlock|msgqueue|nice)\s+\<\=\s+infinity\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdComment
|
||||||
|
|
||||||
" userns
|
|
||||||
syn match sdUserns /\v^\s*(audit\s+)?(deny\s+|allow\s+)?userns(\s+create)?\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdComment nextgroup=@sdEntry,sdComment,sdError,sdInclude
|
|
||||||
|
|
||||||
" link rules
|
" link rules
|
||||||
syn match sdEntryW /\v^\s+(audit\s+)?(deny\s+|allow\s+)?(owner\s+|other\s+)?link\s+(subset\s+)?(\/|\@\{\S*\})\S*\s+-\>\s+(\/|\@\{\S*\})\S*\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdGlob,sdComment
|
syn match sdEntryW /\v^\s+(audit\s+)?(deny\s+|allow\s+)?(owner\s+|other\s+)?link\s+(subset\s+)?(\/|\@\{\S*\})\S*\s+-\>\s+(\/|\@\{\S*\})\S*\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdGlob,sdComment
|
||||||
|
|
||||||
@@ -182,14 +175,14 @@ syn match sdExtHat /\v^\s+(\^|hat\s+|profile\s+)\S+\s*,(\s*$|(\s*#.*$)\@=)/ con
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
syn match sdProfileName /\v^((profile\s+)?\/\S+|profile\s+([a-zA-Z0-9]\S*\s)?\S+)\s+((flags\s*\=\s*)?\(\s*(complain|unconfined|audit|attach_disconnected|no_attach_disconnected|chroot_attach|chroot_no_attach|chroot_relative|namespace_relative|mediate_deleted|delegate_deleted)(\s*,\s*(complain|unconfined|audit|attach_disconnected|no_attach_disconnected|chroot_attach|chroot_no_attach|chroot_relative|namespace_relative|mediate_deleted|delegate_deleted))*\s*\)\s+)=\{/ contains=sdProfileStart,sdHatName,sdFlags,sdComment,sdGlob
|
syn match sdProfileName /\v^((profile\s+)?\/\S+|profile\s+([a-zA-Z0-9]\S*\s)?\S+)\s+((flags\s*\=\s*)?\(\s*(complain|audit|attach_disconnected|no_attach_disconnected|chroot_attach|chroot_no_attach|chroot_relative|namespace_relative|mediate_deleted|delegate_deleted)(\s*,\s*(complain|audit|attach_disconnected|no_attach_disconnected|chroot_attach|chroot_no_attach|chroot_relative|namespace_relative|mediate_deleted|delegate_deleted))*\s*\)\s+)=\{/ contains=sdProfileStart,sdHatName,sdFlags,sdComment,sdGlob
|
||||||
syn match sdProfileStart /{/ contained
|
syn match sdProfileStart /{/ contained
|
||||||
syn match sdProfileEnd /^}\s*(#.*)?$/ contained " TODO: syn region does not (yet?) allow usage of comment in end=
|
syn match sdProfileEnd /^}\s*(#.*)?$/ contained " TODO: syn region does not (yet?) allow usage of comment in end=
|
||||||
" TODO: Removing the $ mark from end= will allow non-comments also :-(
|
" TODO: Removing the $ mark from end= will allow non-comments also :-(
|
||||||
syn match sdHatName /\v^\s+(\^|hat\s+|profile\s+)\S+\s+((flags\s*\=\s*)?\(\s*(complain|unconfined|audit|attach_disconnected|no_attach_disconnected|chroot_attach|chroot_no_attach|chroot_relative|namespace_relative|mediate_deleted|delegate_deleted)(\s*,\s*(complain|unconfined|audit|attach_disconnected|no_attach_disconnected|chroot_attach|chroot_no_attach|chroot_relative|namespace_relative|mediate_deleted|delegate_deleted))*\s*\)\s+)=\{/ contains=sdProfileStart,sdFlags,sdComment
|
syn match sdHatName /\v^\s+(\^|hat\s+|profile\s+)\S+\s+((flags\s*\=\s*)?\(\s*(complain|audit|attach_disconnected|no_attach_disconnected|chroot_attach|chroot_no_attach|chroot_relative|namespace_relative|mediate_deleted|delegate_deleted)(\s*,\s*(complain|audit|attach_disconnected|no_attach_disconnected|chroot_attach|chroot_no_attach|chroot_relative|namespace_relative|mediate_deleted|delegate_deleted))*\s*\)\s+)=\{/ contains=sdProfileStart,sdFlags,sdComment
|
||||||
syn match sdHatStart /{/ contained
|
syn match sdHatStart /{/ contained
|
||||||
syn match sdHatEnd /}/ contained " TODO: allow comments + [same as for syn match sdProfileEnd]
|
syn match sdHatEnd /}/ contained " TODO: allow comments + [same as for syn match sdProfileEnd]
|
||||||
syn match sdFlags /\v((flags\s*\=\s*)?\(\s*(complain|unconfined|audit|attach_disconnected|no_attach_disconnected|chroot_attach|chroot_no_attach|chroot_relative|namespace_relative|mediate_deleted|delegate_deleted)(\s*,\s*(complain|unconfined|audit|attach_disconnected|no_attach_disconnected|chroot_attach|chroot_no_attach|chroot_relative|namespace_relative|mediate_deleted|delegate_deleted))*\s*\)\s+)/ contained contains=sdFlagKey
|
syn match sdFlags /\v((flags\s*\=\s*)?\(\s*(complain|audit|attach_disconnected|no_attach_disconnected|chroot_attach|chroot_no_attach|chroot_relative|namespace_relative|mediate_deleted|delegate_deleted)(\s*,\s*(complain|audit|attach_disconnected|no_attach_disconnected|chroot_attach|chroot_no_attach|chroot_relative|namespace_relative|mediate_deleted|delegate_deleted))*\s*\)\s+)/ contained contains=sdFlagKey
|
||||||
|
|
||||||
syn match sdComment /\s*#.*$/
|
syn match sdComment /\s*#.*$/
|
||||||
" NOTE: contains=sdComment changes #include highlighting to comment color.
|
" NOTE: contains=sdComment changes #include highlighting to comment color.
|
||||||
@@ -203,8 +196,8 @@ syn match sdInclude /\s*abi\s<\S*>\s*,/ contains=sdComment " TODO: doesn't chec
|
|||||||
|
|
||||||
" basic profile block...
|
" basic profile block...
|
||||||
" \s+ does not work in end=, therefore using \s\s*
|
" \s+ does not work in end=, therefore using \s\s*
|
||||||
syn region Normal start=/\v^(profile\s+)?\S+\s+((flags\s*\=\s*)?\(\s*(complain|unconfined|audit|attach_disconnected|no_attach_disconnected|chroot_attach|chroot_no_attach|chroot_relative|namespace_relative|mediate_deleted|delegate_deleted)(\s*,\s*(complain|unconfined|audit|attach_disconnected|no_attach_disconnected|chroot_attach|chroot_no_attach|chroot_relative|namespace_relative|mediate_deleted|delegate_deleted))*\s*\)\s+)=\{/ matchgroup=sdProfileEnd end=/^}\s*$/ contains=sdProfileName,Hat,@sdEntry,sdComment,sdError,sdInclude
|
syn region Normal start=/\v^(profile\s+)?\S+\s+((flags\s*\=\s*)?\(\s*(complain|audit|attach_disconnected|no_attach_disconnected|chroot_attach|chroot_no_attach|chroot_relative|namespace_relative|mediate_deleted|delegate_deleted)(\s*,\s*(complain|audit|attach_disconnected|no_attach_disconnected|chroot_attach|chroot_no_attach|chroot_relative|namespace_relative|mediate_deleted|delegate_deleted))*\s*\)\s+)=\{/ matchgroup=sdProfileEnd end=/^}\s*$/ contains=sdProfileName,Hat,@sdEntry,sdComment,sdError,sdInclude
|
||||||
syn region Hat start=/\v^\s+(\^|hat\s+|profile\s+)\S+\s+((flags\s*\=\s*)?\(\s*(complain|unconfined|audit|attach_disconnected|no_attach_disconnected|chroot_attach|chroot_no_attach|chroot_relative|namespace_relative|mediate_deleted|delegate_deleted)(\s*,\s*(complain|unconfined|audit|attach_disconnected|no_attach_disconnected|chroot_attach|chroot_no_attach|chroot_relative|namespace_relative|mediate_deleted|delegate_deleted))*\s*\)\s+)=\{/ matchgroup=sdHatEnd end=/^\s\s*}\s*$/ contains=sdHatName,@sdEntry,sdComment,sdError,sdInclude
|
syn region Hat start=/\v^\s+(\^|hat\s+|profile\s+)\S+\s+((flags\s*\=\s*)?\(\s*(complain|audit|attach_disconnected|no_attach_disconnected|chroot_attach|chroot_no_attach|chroot_relative|namespace_relative|mediate_deleted|delegate_deleted)(\s*,\s*(complain|audit|attach_disconnected|no_attach_disconnected|chroot_attach|chroot_no_attach|chroot_relative|namespace_relative|mediate_deleted|delegate_deleted))*\s*\)\s+)=\{/ matchgroup=sdHatEnd end=/^\s\s*}\s*$/ contains=sdHatName,@sdEntry,sdComment,sdError,sdInclude
|
||||||
|
|
||||||
" file permissions
|
" file permissions
|
||||||
|
|
||||||
|
@@ -2,7 +2,6 @@
|
|||||||
Encoding=UTF-8
|
Encoding=UTF-8
|
||||||
Name=Vi IMproved
|
Name=Vi IMproved
|
||||||
Categories=GTK;Application;Utility;TextEditor;
|
Categories=GTK;Application;Utility;TextEditor;
|
||||||
Keywords=editor;gvim;vim;
|
|
||||||
GenericName=Text Editor
|
GenericName=Text Editor
|
||||||
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
|
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
|
||||||
Exec=gvim -f %f
|
Exec=gvim -f %f
|
||||||
|
12
vim-7.3-help_tags.patch
Normal file
12
vim-7.3-help_tags.patch
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
Index: vim-8.2.2411/runtime/doc/Makefile
|
||||||
|
===================================================================
|
||||||
|
--- vim-8.2.2411.orig/runtime/doc/Makefile
|
||||||
|
+++ vim-8.2.2411/runtime/doc/Makefile
|
||||||
|
@@ -331,6 +331,7 @@ CONVERTED = \
|
||||||
|
all: tags vim.man evim.man vimdiff.man vimtutor.man xxd.man $(CONVERTED)
|
||||||
|
|
||||||
|
# Use Vim to generate the tags file. Can only be used when Vim has been
|
||||||
|
+ export VIMRUNTIME=../; \
|
||||||
|
# compiled and installed. Supports multiple languages.
|
||||||
|
vimtags: $(DOCS)
|
||||||
|
@$(VIMEXE) --clean -esX -V1 -u doctags.vim
|
@@ -1,15 +1,14 @@
|
|||||||
Index: vim-9.1.0908/src/vimtutor
|
Index: vim-8.2.2411/src/vimtutor
|
||||||
===================================================================
|
===================================================================
|
||||||
--- vim-9.1.0908.orig/src/vimtutor
|
--- vim-8.2.2411.orig/src/vimtutor
|
||||||
+++ vim-9.1.0908/src/vimtutor
|
+++ vim-8.2.2411/src/vimtutor
|
||||||
@@ -158,9 +158,8 @@ done
|
@@ -24,8 +24,7 @@ xx=$1
|
||||||
|
export xx
|
||||||
|
|
||||||
# We need a temp file for the copy. First try using a standard command.
|
# We need a temp file for the copy. First try using a standard command.
|
||||||
-tmp="${TMPDIR-/tmp}"
|
-tmp="${TMPDIR-/tmp}"
|
||||||
# shellcheck disable=SC2186
|
-TUTORCOPY=`mktemp $tmp/tutorXXXXXX || tempfile -p tutor || echo none`
|
||||||
-TUTORCOPY=$(mktemp "$tmp/tutorXXXXXX" || tempfile -p tutor || echo none)
|
+TUTORCOPY=`mktemp /tmp/tutorXXXXXX || echo /tmp/tutor$$`
|
||||||
+TUTORCOPY=$(mktemp /tmp/tutorXXXXXX || echo /tmp/tutor$$)
|
|
||||||
|
|
||||||
# If the standard commands failed then create a directory to put the copy in.
|
# If the standard commands failed then create a directory to put the copy in.
|
||||||
# That is a secure way to make a temp file.
|
# That is a secure way to make a temp file.
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
Index: vim-9.1.1406/runtime/syntax/sh.vim
|
Index: vim-8.2.2411/runtime/syntax/sh.vim
|
||||||
===================================================================
|
===================================================================
|
||||||
--- vim-9.1.1406.orig/runtime/syntax/sh.vim
|
--- vim-8.2.2411.orig/runtime/syntax/sh.vim
|
||||||
+++ vim-9.1.1406/runtime/syntax/sh.vim
|
+++ vim-8.2.2411/runtime/syntax/sh.vim
|
||||||
@@ -142,6 +142,13 @@ if exists("b:is_kornshell") || exists("b
|
@@ -74,6 +74,13 @@ if exists("b:is_dash")
|
||||||
endif
|
let b:is_posix= 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
+" Neither is_kornshell nor is_bash was explicitly set, and
|
+" Neither is_kornshell nor is_bash was explicitly set, and
|
||||||
|
13
vim-7.4-highlight_fstab.patch
Normal file
13
vim-7.4-highlight_fstab.patch
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
Index: vim-9.0.1188/runtime/syntax/fstab.vim
|
||||||
|
===================================================================
|
||||||
|
--- vim-9.0.1188.orig/runtime/syntax/fstab.vim
|
||||||
|
+++ vim-9.0.1188/runtime/syntax/fstab.vim
|
||||||
|
@@ -35,7 +35,7 @@ syn match fsOperator /[,=:#]/
|
||||||
|
" Device
|
||||||
|
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 devtmpfs sysfs usbfs
|
||||||
|
+syn keyword fsDeviceKeyword contained none proc linproc tmpfs debugfs devpts devtmpfs sysfs usbfs
|
||||||
|
syn keyword fsDeviceKeyword contained LABEL nextgroup=fsDeviceLabel
|
||||||
|
syn keyword fsDeviceKeyword contained UUID nextgroup=fsDeviceUUID
|
||||||
|
syn keyword fsDeviceKeyword contained PARTLABEL nextgroup=fsDevicePARTLABEL
|
@@ -1,8 +1,8 @@
|
|||||||
Index: vim-9.1.0530/src/main.c
|
Index: vim-8.2.2411/src/main.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- vim-9.1.0530.orig/src/main.c
|
--- vim-8.2.2411.orig/src/main.c
|
||||||
+++ vim-9.1.0530/src/main.c
|
+++ vim-8.2.2411/src/main.c
|
||||||
@@ -3251,7 +3251,10 @@ source_startup_scripts(mparm_T *parmp)
|
@@ -3130,7 +3130,10 @@ source_startup_scripts(mparm_T *parmp)
|
||||||
* Get system wide defaults, if the file name is defined.
|
* Get system wide defaults, if the file name is defined.
|
||||||
*/
|
*/
|
||||||
#ifdef SYS_VIMRC_FILE
|
#ifdef SYS_VIMRC_FILE
|
||||||
|
BIN
vim-9.1.0330.tar.gz
(Stored with Git LFS)
Normal file
BIN
vim-9.1.0330.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@@ -1,71 +0,0 @@
|
|||||||
From b16c218964d2024a5c52f251a49c9d71da63f9a0 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Martin Jungblut Schreiner <martinjungblut@gmail.com>
|
|
||||||
Date: Wed, 5 Mar 2025 17:07:19 -0300
|
|
||||||
Subject: [PATCH] Revert "runtime(defaults): Detect putty terminal and switch
|
|
||||||
to dark background"
|
|
||||||
|
|
||||||
This reverts commit 2abec431e1ab5f4f6e21c2bb490241732622a8c5.
|
|
||||||
---
|
|
||||||
runtime/defaults.vim | 5 -----
|
|
||||||
runtime/doc/autocmd.txt | 17 ++++-------------
|
|
||||||
runtime/doc/version9.txt | 3 +++
|
|
||||||
src/testdir/test_cmdline.vim | 2 --
|
|
||||||
4 files changed, 7 insertions(+), 20 deletions(-)
|
|
||||||
|
|
||||||
Index: vim-9.1.1176/runtime/defaults.vim
|
|
||||||
===================================================================
|
|
||||||
--- vim-9.1.1176.orig/runtime/defaults.vim
|
|
||||||
+++ vim-9.1.1176/runtime/defaults.vim
|
|
||||||
@@ -112,11 +112,6 @@ if 1
|
|
||||||
\ | execute "normal! g`\""
|
|
||||||
\ | endif
|
|
||||||
|
|
||||||
- " Set the default background for putty to dark. Putty usually sets the
|
|
||||||
- " $TERM to xterm and by default it starts with a dark background which
|
|
||||||
- " makes syntax highlighting often hard to read with bg=light
|
|
||||||
- " undo this using: ":au! vimStartup TermResponse"
|
|
||||||
- autocmd TermResponse * if v:termresponse == "\e[>0;136;0c" | set bg=dark | endif
|
|
||||||
augroup END
|
|
||||||
|
|
||||||
" Quite a few people accidentally type "q:" instead of ":q" and get confused
|
|
||||||
Index: vim-9.1.1176/runtime/doc/autocmd.txt
|
|
||||||
===================================================================
|
|
||||||
--- vim-9.1.1176.orig/runtime/doc/autocmd.txt
|
|
||||||
+++ vim-9.1.1176/runtime/doc/autocmd.txt
|
|
||||||
@@ -1260,19 +1260,10 @@ TerminalWinOpen Just after a terminal
|
|
||||||
TermResponse After the response to |t_RV| is received from
|
|
||||||
the terminal. The value of |v:termresponse|
|
|
||||||
can be used to do things depending on the
|
|
||||||
- terminal version.
|
|
||||||
- This is used in |defaults.vim| to detect
|
|
||||||
- putty terminal and set a dark background: >
|
|
||||||
-
|
|
||||||
- au TermResponse *
|
|
||||||
- \ if v:termresponse == "\e[>0;136;0c"
|
|
||||||
- \ set bg=dark
|
|
||||||
- \ endif
|
|
||||||
-<
|
|
||||||
- Note: that this event may be triggered halfway
|
|
||||||
- executing another event, especially if file
|
|
||||||
- I/O, a shell command or anything else that
|
|
||||||
- takes time is involved.
|
|
||||||
+ terminal version. Note that this event may be
|
|
||||||
+ triggered halfway executing another event,
|
|
||||||
+ especially if file I/O, a shell command or
|
|
||||||
+ anything else that takes time is involved.
|
|
||||||
*TermResponseAll*
|
|
||||||
TermResponseAll After the response to |t_RV|, |t_RC|, |t_RS|,
|
|
||||||
|t_RB|, |t_RF|, or |t_u7| are received from
|
|
||||||
Index: vim-9.1.1176/src/testdir/test_cmdline.vim
|
|
||||||
===================================================================
|
|
||||||
--- vim-9.1.1176.orig/src/testdir/test_cmdline.vim
|
|
||||||
+++ vim-9.1.1176/src/testdir/test_cmdline.vim
|
|
||||||
@@ -1843,8 +1843,6 @@ func Test_verbose_option()
|
|
||||||
CheckScreendump
|
|
||||||
|
|
||||||
let lines =<< trim [SCRIPT]
|
|
||||||
- " clear the TermResponse autocommand from defaults.vim
|
|
||||||
- au! vimStartup TermResponse
|
|
||||||
command DoSomething echo 'hello' |set ts=4 |let v = '123' |echo v
|
|
||||||
call feedkeys("\r", 't') " for the hit-enter prompt
|
|
||||||
set verbose=20
|
|
BIN
vim-9.1.1406.tar.gz
(Stored with Git LFS)
BIN
vim-9.1.1406.tar.gz
(Stored with Git LFS)
Binary file not shown.
16
vim-changelog.sh
Normal file
16
vim-changelog.sh
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
|
directory=https://ftp.nluug.nl/pub/vim/patches/
|
||||||
|
version=9.0
|
||||||
|
|
||||||
|
if [ $# -ne 2 ]; then
|
||||||
|
echo "usage: $0 <old-minor-version> <new-minor-version>" 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Updated to version $version.$(echo $2 | sed 's/^*//'), fixes the following problems"
|
||||||
|
for i in $(seq -w $1 $2); do
|
||||||
|
curl $directory/$version/$version.$i -s | grep -v "Binary file (standard input) matches" | \
|
||||||
|
tr -d '\n' | grep -oP "Problem:.*Solution:" | sed s,"Problem: "," * ", | sed s,"Solution:",, | \
|
||||||
|
tr '\t' '\n' | sed s,' ','', | fmt -w 80
|
||||||
|
done
|
5138
vim.changes
5138
vim.changes
File diff suppressed because it is too large
Load Diff
63
vim.spec
63
vim.spec
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package vim
|
# spec file for package vim
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
%define pkg_version 9.1
|
%define pkg_version 9.1
|
||||||
%define patchlevel 1406
|
%define patchlevel 0330
|
||||||
%define patchlevel_compact %{patchlevel}
|
%define patchlevel_compact %{patchlevel}
|
||||||
%define VIM_SUBDIR vim91
|
%define VIM_SUBDIR vim91
|
||||||
%define site_runtimepath %{_datadir}/vim/site
|
%define site_runtimepath %{_datadir}/vim/site
|
||||||
@@ -59,22 +59,24 @@ Source30: gvim_128.png
|
|||||||
Source31: gvim_256.png
|
Source31: gvim_256.png
|
||||||
Source32: gvim_512.png
|
Source32: gvim_512.png
|
||||||
# /Section
|
# /Section
|
||||||
|
Source98: vim-changelog.sh
|
||||||
Source99: %{name}-7.4-rpmlintrc
|
Source99: %{name}-7.4-rpmlintrc
|
||||||
Patch1: %{name}-7.4-disable_lang_no.patch
|
Patch3: %{name}-7.4-disable_lang_no.patch
|
||||||
Patch2: %{name}-7.3-gvimrc_fontset.patch
|
Patch4: %{name}-7.3-gvimrc_fontset.patch
|
||||||
Patch3: %{name}-7.3-sh_is_bash.patch
|
Patch5: %{name}-7.4-highlight_fstab.patch
|
||||||
Patch4: %{name}-7.3-filetype_ftl.patch
|
Patch6: %{name}-7.3-sh_is_bash.patch
|
||||||
Patch5: %{name}-7.3-use_awk.patch
|
Patch7: %{name}-7.3-filetype_ftl.patch
|
||||||
Patch6: %{name}-7.3-name_vimrc.patch
|
Patch8: %{name}-7.3-help_tags.patch
|
||||||
Patch7: %{name}-7.3-mktemp_tutor.patch
|
Patch9: %{name}-7.3-use_awk.patch
|
||||||
Patch8: %{name}-7.4-filetype_apparmor.patch
|
Patch10: %{name}-7.3-name_vimrc.patch
|
||||||
Patch9: %{name}-7.3-filetype_spec.patch
|
Patch11: %{name}-7.3-mktemp_tutor.patch
|
||||||
Patch10: %{name}-7.3-filetype_changes.patch
|
Patch15: %{name}-7.4-filetype_apparmor.patch
|
||||||
Patch11: %{name}-7.4-filetype_mine.patch
|
Patch18: %{name}-7.3-filetype_spec.patch
|
||||||
Patch12: %{name}73-no-static-libpython.patch
|
Patch21: %{name}-7.3-filetype_changes.patch
|
||||||
Patch13: %{name}-8.0.1568-defaults.patch
|
Patch22: %{name}-7.4-filetype_mine.patch
|
||||||
Patch14: %{name}-8.2.2411-globalvimrc.patch
|
Patch100: vim73-no-static-libpython.patch
|
||||||
Patch15: %{name}-9.1.1134-revert-putty-terminal-colors.patch
|
Patch101: vim-8.0.1568-defaults.patch
|
||||||
|
Patch104: vim-8.2.2411-globalvimrc.patch
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: db-devel
|
BuildRequires: db-devel
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@@ -120,7 +122,7 @@ Provides: vim_client
|
|||||||
Requires: alts
|
Requires: alts
|
||||||
%else
|
%else
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun):update-alternatives
|
||||||
%endif
|
%endif
|
||||||
%if %{with python2}
|
%if %{with python2}
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
@@ -172,7 +174,7 @@ BuildRequires: alts
|
|||||||
Requires: alts
|
Requires: alts
|
||||||
%else
|
%else
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun):update-alternatives
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description -n gvim
|
%description -n gvim
|
||||||
@@ -191,7 +193,7 @@ BuildRequires: alts
|
|||||||
Requires: alts
|
Requires: alts
|
||||||
%else
|
%else
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun):update-alternatives
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description small
|
%description small
|
||||||
@@ -209,28 +211,27 @@ a hex dump back to its original binary form.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{pkg_version}.%{patchlevel}
|
%setup -q -n %{name}-%{pkg_version}.%{patchlevel}
|
||||||
|
|
||||||
%patch -P 1 -p1
|
|
||||||
%patch -P 2 -p1
|
|
||||||
%patch -P 3 -p1
|
%patch -P 3 -p1
|
||||||
%patch -P 4 -p1
|
%patch -P 4 -p1
|
||||||
%patch -P 5 -p1
|
%patch -P 5 -p1
|
||||||
%patch -P 6 -p1
|
%patch -P 6 -p1
|
||||||
%patch -P 7 -p1
|
%patch -P 7 -p1
|
||||||
cp %{SOURCE23} runtime/syntax/apparmor.vim
|
|
||||||
%patch -P 8 -p1
|
%patch -P 8 -p1
|
||||||
%patch -P 9 -p1
|
%patch -P 9 -p1
|
||||||
%patch -P 10 -p1
|
%patch -P 10 -p1
|
||||||
%patch -P 11 -p1
|
%patch -P 11 -p1
|
||||||
%patch -P 12 -p1
|
cp %{SOURCE23} runtime/syntax/apparmor.vim
|
||||||
%patch -P 13 -p1
|
|
||||||
%patch -P 14 -p1
|
|
||||||
%patch -P 15 -p1
|
%patch -P 15 -p1
|
||||||
|
%patch -P 18 -p1
|
||||||
|
%patch -P 21 -p1
|
||||||
|
%patch -P 22 -p1
|
||||||
|
%patch -P 100 -p1
|
||||||
|
%patch -P 101 -p1
|
||||||
|
%patch -P 104 -p1
|
||||||
cp %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE8} %{SOURCE10} .
|
cp %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE8} %{SOURCE10} .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
## about -std=gnu17 see github.com/vim/vim/issues/16575;
|
export CFLAGS="%{optflags} -Wall -pipe -fno-strict-aliasing"
|
||||||
## use -std=gnu11 here to allow build on Leap 15.6
|
|
||||||
export CFLAGS="%{optflags} -Wall -pipe -fno-strict-aliasing -std=gnu11"
|
|
||||||
export CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/-D_FORTIFY_SOURCE=1}
|
export CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/-D_FORTIFY_SOURCE=1}
|
||||||
|
|
||||||
export COMMON_OPTIONS="\
|
export COMMON_OPTIONS="\
|
||||||
@@ -418,10 +419,6 @@ install -D -m 0644 \
|
|||||||
vimrc_example1 vimrc_example2 suse.vimrc \
|
vimrc_example1 vimrc_example2 suse.vimrc \
|
||||||
README.txt READMEdir/README_src.txt READMEdir/README_unix.txt \
|
README.txt READMEdir/README_src.txt READMEdir/README_unix.txt \
|
||||||
%{buildroot}%{_docdir}/vim/
|
%{buildroot}%{_docdir}/vim/
|
||||||
|
|
||||||
rm -f %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/LICENSE
|
|
||||||
rm -f %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/README.txt
|
|
||||||
|
|
||||||
# gvim
|
# gvim
|
||||||
install -D -m 0644 \
|
install -D -m 0644 \
|
||||||
README.Japanese-XIM runtime/gvimrc_example.vim suse.gvimrc \
|
README.Japanese-XIM runtime/gvimrc_example.vim suse.gvimrc \
|
||||||
|
Reference in New Issue
Block a user