Skip to content

Commit 5cc7ecf

Browse files
author
casjay
committed
πŸ¦ˆπŸ πŸœβ— Initial Commit β—πŸœπŸ¦ˆπŸ 
0 parents  commit 5cc7ecf

26 files changed

+5289
-0
lines changed

β€Ž.gitignore

+93
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# gitignore created on 04/01/23 at 20:04
2+
# Disable reminder in prompt
3+
ignoredirmessage
4+
5+
# OS generated files
6+
### Linux ###
7+
*~
8+
9+
# temporary files which can be created if a process still has a handle open of a deleted file
10+
.fuse_hidden*
11+
12+
# KDE directory preferences
13+
.directory
14+
15+
# Linux trash folder which might appear on any partition or disk
16+
.Trash-*
17+
18+
# .nfs files are created when an open file is removed but is still being accessed
19+
.nfs*
20+
21+
### macOS ###
22+
# General
23+
.DS_Store
24+
.AppleDouble
25+
.LSOverride
26+
27+
# Thumbnails
28+
._*
29+
30+
# Files that might appear in the root of a volume
31+
.DocumentRevisions-V100
32+
.fseventsd
33+
.Spotlight-V100
34+
.TemporaryItems
35+
.Trashes
36+
.VolumeIcon.icns
37+
.com.apple.timemachine.donotpresent
38+
39+
# Directories potentially created on remote AFP share
40+
.AppleDB
41+
.AppleDesktop
42+
Network Trash Folder
43+
Temporary Items
44+
.apdisk
45+
46+
### macOS Patch ###
47+
# iCloud generated files
48+
*.icloud
49+
50+
### Windows ###
51+
# Windows thumbnail cache files
52+
Thumbs.db
53+
Thumbs.db:encryptable
54+
ehthumbs.db
55+
ehthumbs_vista.db
56+
57+
# Dump file
58+
*.stackdump
59+
60+
# Folder config file
61+
[Dd]esktop.ini
62+
63+
# Recycle Bin used on file shares
64+
$RECYCLE.BIN/
65+
66+
# Windows Installer files
67+
*.cab
68+
*.msi
69+
*.msix
70+
*.msm
71+
*.msp
72+
73+
# Windows shortcuts
74+
*.lnk
75+
76+
# ignore commit message
77+
**/.gitcommit
78+
79+
#ignore .failed
80+
**/.build_failed
81+
82+
# ignore .bak files
83+
**/*.bak
84+
85+
# ignore .no_push files
86+
**/.no_push
87+
88+
# ignore .no_git files
89+
**/.no_git
90+
91+
# ignore .installed files
92+
**/.installed
93+

β€ŽLICENSE.md

Whitespace-only changes.

β€ŽREADME.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## πŸ‘‹ Welcome to vim πŸš€
2+
3+
Description
4+
5+
6+
## Author
7+
8+
πŸ€– casjay: [Github](https://github.com/casjay) πŸ€–

β€Žgvim16.png

226 Bytes
Loading

β€Žgvim32.png

347 Bytes
Loading

β€Žgvim48.png

474 Bytes
Loading

β€Žgvim64.png

4.38 KB
Loading

β€Žmacros.vim

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
%vimfiles_root %{_datadir}/vim/vimfiles

β€Žspec-template.new

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# SPEC file overview:
2+
# https://docs.fedoraproject.org/en-US/quick-docs/creating-rpm-packages/#con_rpm-spec-file-overview
3+
# Fedora packaging guidelines:
4+
# https://docs.fedoraproject.org/en-US/packaging-guidelines/
5+
6+
7+
Name:
8+
Version:
9+
Release: 0%{?dist}
10+
Summary:
11+
12+
License:
13+
URL:
14+
Source0:
15+
16+
BuildRequires:
17+
Requires:
18+
19+
%description
20+
21+
22+
%prep
23+
%setup -q
24+
25+
26+
%build
27+
%configure
28+
make %{?_smp_mflags}
29+
30+
31+
%install
32+
%make_install
33+
34+
35+
%files
36+
%doc
37+
%license
38+
39+
40+
41+
%changelog

β€Žvi_wrapper

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/sh
2+
3+
# run vim if:
4+
# - 'vi' command is used and 'vim' binary is available
5+
# - 'vim' command is used
6+
# NOTE: Set up a local alias if you want vim -> vi functionality. We will not
7+
# do it globally, because it messes up with available startup options (see
8+
# ':help starting', 'vi' is not capable of '-d'). The introducing an environment
9+
# variable, which an user must set to get the feature, will do the same trick
10+
# as setting an alias (needs user input, does not work with sudo), so it is left
11+
# on user whether he decides to use an alias:
12+
#
13+
# alias vim=vi
14+
#
15+
# in bashrc file.
16+
17+
if test -f /usr/bin/vim
18+
then
19+
exec /usr/bin/vim "$@"
20+
fi
21+
22+
# run vi otherwise
23+
exec /usr/libexec/vi "$@"

β€Žview_wrapper

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/sh
2+
3+
# run vim -R if available
4+
if test -f /usr/bin/vim
5+
then
6+
exec /usr/bin/vim -R "$@"
7+
fi
8+
9+
# run vi otherwise
10+
exec /usr/libexec/vi -R "$@"

β€Žvim-7.0-fixkeys.patch

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
diff -up vim90/src/term.c.fixkeys vim90/src/term.c
2+
--- vim90/src/term.c.fixkeys 2022-10-20 14:45:53.896659582 +0200
3+
+++ vim90/src/term.c 2022-10-20 14:48:28.958697659 +0200
4+
@@ -851,14 +851,14 @@ static struct builtin_term builtin_termc
5+
{K_XRIGHT, "\033[@;*C"}, // Esc [ C or Esc [ 1 ; C
6+
{K_XLEFT, "\033[@;*D"}, // Esc [ D or Esc [ 1 ; D
7+
// An extra set of function keys for vt100 mode
8+
- {K_XF1, "\033O*P"},
9+
- {K_XF2, "\033O*Q"},
10+
- {K_XF3, "\033O*R"},
11+
- {K_XF4, "\033O*S"},
12+
- {K_F1, "\033[11;*~"},
13+
- {K_F2, "\033[12;*~"},
14+
- {K_F3, "\033[13;*~"},
15+
- {K_F4, "\033[14;*~"},
16+
+ {K_XF1, "\033[11~"},
17+
+ {K_XF2, "\033[12~"},
18+
+ {K_XF3, "\033[13~"},
19+
+ {K_XF4, "\033[14~"},
20+
+ {K_F1, "\033OP"},
21+
+ {K_F2, "\033OQ"},
22+
+ {K_F3, "\033OR"},
23+
+ {K_F4, "\033OS"},
24+
{K_F5, "\033[15;*~"},
25+
{K_F6, "\033[17;*~"},
26+
{K_F7, "\033[18;*~"},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff -up vim73/runtime/doc/vim.1.668894 vim73/runtime/doc/vim.1
2+
--- vim73/runtime/doc/vim.1.668894 2010-05-15 13:04:00.000000000 +0200
3+
+++ vim73/runtime/doc/vim.1 2012-08-28 12:41:36.000000000 +0200
4+
@@ -73,7 +73,7 @@ To edit a file that starts with a dash,
5+
.TP
6+
\-
7+
The file to edit is read from stdin. Commands are read from stderr, which
8+
-should be a tty.
9+
+should be a TTY.
10+
.TP
11+
\-t {tag}
12+
The file to edit and the initial cursor position depends on a "tag", a sort

β€Žvim-7.4-globalsyntax.patch

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/runtime/syntax/spec.vim b/runtime/syntax/spec.vim
2+
index 1a5a108..b709d20 100644
3+
--- a/runtime/syntax/spec.vim
4+
+++ b/runtime/syntax/spec.vim
5+
@@ -111,7 +111,7 @@ syn region specDescriptionArea matchgroup=specSection start='^%description' end=
6+
syn region specPackageArea matchgroup=specSection start='^%package' end='^%'me=e-1 contains=specPackageOpts,specPreAmble,specComment
7+
8+
"%% Scripts Section %%
9+
-syn region specScriptArea matchgroup=specSection start='^%\(prep\|build\|install\|clean\|check\|pre\|postun\|preun\|post\|posttrans\)\>' skip='^%{\|^%\(define\|patch\d*\|configure\|GNUconfigure\|setup\|autosetup\|autopatch\|find_lang\|make_build\|makeinstall\|make_install\)\>' end='^%'me=e-1 contains=specSpecialVariables,specVariables,@specCommands,specVariables,shDo,shFor,shCaseEsac,specNoNumberHilite,specCommandOpts,shComment,shIf,specSpecialChar,specMacroIdentifier,specSectionMacroArea,specSectionMacroBracketArea,shOperator,shQuote1,shQuote2
10+
+syn region specScriptArea matchgroup=specSection start='^%\(prep\|build\|install\|clean\|check\|pre\|postun\|preun\|post\|posttrans\)\>' skip='^%{\|^%\(define\|global\|patch\d*\|configure\|GNUconfigure\|setup\|autosetup\|autopatch\|find_lang\|make_build\|makeinstall\|make_install\)\>' end='^%'me=e-1 contains=specSpecialVariables,specVariables,@specCommands,specVariables,shDo,shFor,shCaseEsac,specNoNumberHilite,specCommandOpts,shComment,shIf,specSpecialChar,specMacroIdentifier,specSectionMacroArea,specSectionMacroBracketArea,shOperator,shQuote1,shQuote2
11+
12+
"%% Changelog Section %%
13+
syn region specChangelogArea matchgroup=specSection start='^%changelog' end='^%'me=e-1 contains=specEmail,specURL,specWeekday,specMonth,specNumber,specComment,specLicense

β€Žvim-7.4-specsyntax.patch

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
diff -up vim74/runtime/syntax/spec.vim.highlite vim74/runtime/syntax/spec.vim
2+
--- vim74/runtime/syntax/spec.vim.highlite 2016-07-04 10:17:45.000000000 +0200
3+
+++ vim74/runtime/syntax/spec.vim 2016-08-04 15:20:26.116049343 +0200
4+
@@ -38,7 +38,7 @@ syn match specNoNumberHilite 'X11\|X11R6
5+
syn match specManpageFile '[a-zA-Z]\.1'
6+
7+
"Day, Month and most used license acronyms
8+
-syn keyword specLicense contained GPL LGPL BSD MIT GNU
9+
+syn keyword specLicense contained GPL LGPL BSD MIT GNU distributable
10+
syn keyword specWeekday contained Mon Tue Wed Thu Fri Sat Sun
11+
syn keyword specMonth contained Jan Feb Mar Apr Jun Jul Aug Sep Oct Nov Dec
12+
syn keyword specMonth contained January February March April May June July August September October November December
13+
@@ -61,9 +61,9 @@ syn cluster specListedFiles contains=spe
14+
15+
"specComands
16+
syn match specConfigure contained '\./configure'
17+
-syn match specTarCommand contained '\<tar\s\+[cxvpzIf]\{,5}\s*'
18+
+syn match specTarCommand contained '\<tar\s\+[cxvpzIjf]\{,5}\s*'
19+
syn keyword specCommandSpecial contained root
20+
-syn keyword specCommand contained make xmkmf mkdir chmod ln find sed rm strip moc echo grep ls rm mv mkdir install cp pwd cat tail then else elif cd gzip rmdir ln eval export touch
21+
+syn keyword specCommand contained make xmkmf mkdir chmod ln find sed rm strip moc echo grep ls rm mv mkdir install cp pwd cat tail then else elif cd gzip rmdir ln eval export touch bzip2 bunzip2 gunzip
22+
syn cluster specCommands contains=specCommand,specTarCommand,specConfigure,specCommandSpecial
23+
24+
"frequently used rpm env vars
25+
@@ -105,7 +105,7 @@ syn case ignore
26+
"%% PreAmble Section %%
27+
"Copyright and Serial were deprecated by License and Epoch
28+
syn region specPreAmbleDeprecated oneline matchgroup=specError start='^\(Copyright\|Serial\)' end='$' contains=specEmail,specURL,specURLMacro,specLicense,specColon,specVariables,specSpecialChar,specMacroIdentifier
29+
-syn region specPreAmble oneline matchgroup=specCommand start='^\(Prereq\|Summary\|Name\|Version\|Packager\|Requires\|Recommends\|Suggests\|Supplements\|Enhances\|Icon\|URL\|Source\d*\|Patch\d*\|Prefix\|Packager\|Group\|License\|Release\|BuildRoot\|Distribution\|Vendor\|Provides\|ExclusiveArch\|ExcludeArch\|ExclusiveOS\|Obsoletes\|BuildArch\|BuildArchitectures\|BuildRequires\|BuildConflicts\|BuildPreReq\|Conflicts\|AutoRequires\|AutoReq\|AutoReqProv\|AutoProv\|Epoch\)' end='$' contains=specEmail,specURL,specURLMacro,specLicense,specColon,specVariables,specSpecialChar,specMacroIdentifier
30+
+syn region specPreAmble oneline matchgroup=specCommand start='^\(Prereq\|Summary\|Name\|Version\|Packager\|Requires\|Recommends\|Suggests\|Supplements\|Enhances\|Icon\|URL\|Source\d*\|Patch\d*\|Prefix\|Packager\|Group\|License\|Release\|BuildRoot\|Distribution\|Vendor\|Provides\|ExclusiveArch\|ExcludeArch\|ExcludeOS\|ExclusiveOS\|Obsoletes\|BuildArch\|BuildArchitectures\|BuildRequires\|BuildConflicts\|BuildPreReq\|Conflicts\|AutoRequires\|AutoReq\|AutoReqProv\|AutoProv\|Epoch\)' end='$' contains=specEmail,specURL,specURLMacro,specLicense,specColon,specVariables,specSpecialChar,specMacroIdentifier
31+
32+
"%% Description Section %%
33+
syn region specDescriptionArea matchgroup=specSection start='^%description' end='^%'me=e-1 contains=specDescriptionOpts,specEmail,specURL,specNumber,specMacroIdentifier,specComment

β€Žvim-8.0-copy-paste.patch

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
diff --git a/runtime/defaults.vim b/runtime/defaults.vim
2+
index f1d5cd1..b08de8e 100644
3+
--- a/runtime/defaults.vim
4+
+++ b/runtime/defaults.vim
5+
@@ -74,18 +74,6 @@ sunmap Q
6+
" Revert with ":iunmap <C-U>".
7+
inoremap <C-U> <C-G>u<C-U>
8+
9+
-" In many terminal emulators the mouse works just fine. By enabling it you
10+
-" can position the cursor, Visually select and scroll with the mouse.
11+
-" Only xterm can grab the mouse events when using the shift key, for other
12+
-" terminals use ":", select text and press Esc.
13+
-if has('mouse')
14+
- if &term =~ 'xterm'
15+
- set mouse=a
16+
- else
17+
- set mouse=nvi
18+
- endif
19+
-endif
20+
-
21+
" Only do this part when Vim was compiled with the +eval feature.
22+
if 1
23+
24+
diff --git a/src/testdir/test_balloon.vim b/src/testdir/test_balloon.vim
25+
index ed0c6c1..90c8c40 100644
26+
--- a/src/testdir/test_balloon.vim
27+
+++ b/src/testdir/test_balloon.vim
28+
@@ -9,6 +9,7 @@ source screendump.vim
29+
CheckScreendump
30+
31+
let s:common_script =<< trim [CODE]
32+
+ set mouse=a
33+
call setline(1, ["one one one", "two tXo two", "three three three"])
34+
set balloonevalterm balloonexpr=MyBalloonExpr()..s:trailing balloondelay=100
35+
let s:trailing = '<' " check that script context is set
36+
diff --git a/src/testdir/test_popupwin.vim b/src/testdir/test_popupwin.vim
37+
index b91689e..c6b70d1 100644
38+
--- a/src/testdir/test_popupwin.vim
39+
+++ b/src/testdir/test_popupwin.vim
40+
@@ -553,6 +553,7 @@ func Test_popup_drag()
41+
" create a popup that covers the command line
42+
let lines =<< trim END
43+
call setline(1, range(1, 20))
44+
+ set mouse=a
45+
split
46+
vsplit
47+
$wincmd w
48+
@@ -621,6 +622,7 @@ func Test_popup_drag_minwidth()
49+
50+
" create a popup that does not fit
51+
let lines =<< trim END
52+
+ set mouse=a
53+
call range(40)
54+
\ ->map({_,i -> string(i)})
55+
\ ->popup_create({
56+
@@ -669,6 +671,7 @@ func Test_popup_drag_termwin()
57+
let lines =<< trim END
58+
set foldmethod=marker
59+
call setline(1, range(100))
60+
+ set mouse=a
61+
for nr in range(7)
62+
call setline(nr * 12 + 1, "fold {{{")
63+
call setline(nr * 12 + 11, "end }}}")
64+
@@ -722,6 +725,7 @@ func Test_popup_close_with_mouse()
65+
66+
let lines =<< trim END
67+
call setline(1, range(1, 20))
68+
+ set mouse=a
69+
" With border, can click on X
70+
let winid = popup_create('foobar', #{
71+
\ close: 'button',
72+
@@ -1557,6 +1561,7 @@ func Test_popup_beval()
73+
let lines =<< trim END
74+
call setline(1, range(1, 20))
75+
call setline(5, 'here is some text to hover over')
76+
+ set mouse=a
77+
set balloonevalterm
78+
set balloonexpr=BalloonExpr()
79+
set balloondelay=100
80+
@@ -2262,6 +2267,7 @@ func Test_popup_scrollbar()
81+
82+
let lines =<< trim END
83+
call setline(1, range(1, 20))
84+
+ set mouse=a
85+
hi ScrollThumb ctermbg=blue
86+
hi ScrollBar ctermbg=red
87+
let winid = popup_create(['one', 'two', 'three', 'four', 'five',

β€Žvim-9.0-1429.tar.bz2

13.3 MB
Binary file not shown.

0 commit comments

Comments
Β (0)