Skip to content

Commit e101204

Browse files
committed
patch 7.4.1675
Problem: The swapmous plugin has to be copied or sourced to be used. Solution: Turn it into the swapmouse package.
1 parent cf2d8de commit e101204

5 files changed

Lines changed: 30 additions & 25 deletions

File tree

Filelist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ RT_ALL = \
531531
runtime/pack/dist/opt/matchit/plugin/matchit.vim \
532532
runtime/pack/dist/opt/matchit/doc/matchit.txt \
533533
runtime/pack/dist/opt/matchit/doc/tags \
534+
runtime/pack/dist/opt/swapmouse/plugin/swapmouse.vim \
534535

535536
# runtime files for all distributions without CR-NL translation
536537
RT_ALL_BIN = \

runtime/macros/README.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ less.sh + less.vim make Vim work like less (or more)
1515

1616
shellmenu.vim menus for editing shell scripts in the GUI version
1717

18-
swapmous.vim swap left and right mouse buttons
19-
20-
editexisting.vim
2118

2219
This one is only for Unix.
2320
file_select.vim macros that make a handy file selector
@@ -34,3 +31,5 @@ packadd! editexisting when editing a file that is already edited with
3431
packadd! justify justifying text.
3532

3633
packadd! matchit makes the % command work better
34+
35+
packadd! swapmouse swap left and right mouse buttons

runtime/macros/swapmous.vim

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,3 @@
1-
" These macros swap the left and right mouse buttons (for left handed)
2-
" Don't forget to do ":set mouse=a" or the mouse won't work at all
3-
noremap <LeftMouse> <RightMouse>
4-
noremap <2-LeftMouse> <2-RightMouse>
5-
noremap <3-LeftMouse> <3-RightMouse>
6-
noremap <4-LeftMouse> <4-RightMouse>
7-
noremap <LeftDrag> <RightDrag>
8-
noremap <LeftRelease> <RightRelease>
9-
noremap <RightMouse> <LeftMouse>
10-
noremap <2-RightMouse> <2-LeftMouse>
11-
noremap <3-RightMouse> <3-LeftMouse>
12-
noremap <4-RightMouse> <4-LeftMouse>
13-
noremap <RightDrag> <LeftDrag>
14-
noremap <RightRelease> <LeftRelease>
15-
noremap g<LeftMouse> <C-RightMouse>
16-
noremap g<RightMouse> <C-LeftMouse>
17-
noremap! <LeftMouse> <RightMouse>
18-
noremap! <LeftDrag> <RightDrag>
19-
noremap! <LeftRelease> <RightRelease>
20-
noremap! <RightMouse> <LeftMouse>
21-
noremap! <RightDrag> <LeftDrag>
22-
noremap! <RightRelease> <LeftRelease>
1+
" Load the swapmouse package.
2+
" For those users who were loading the swapmous plugin from here.
3+
packadd swapmouse
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
" These macros swap the left and right mouse buttons (for left handed)
2+
" Don't forget to do ":set mouse=a" or the mouse won't work at all
3+
noremap <LeftMouse> <RightMouse>
4+
noremap <2-LeftMouse> <2-RightMouse>
5+
noremap <3-LeftMouse> <3-RightMouse>
6+
noremap <4-LeftMouse> <4-RightMouse>
7+
noremap <LeftDrag> <RightDrag>
8+
noremap <LeftRelease> <RightRelease>
9+
noremap <RightMouse> <LeftMouse>
10+
noremap <2-RightMouse> <2-LeftMouse>
11+
noremap <3-RightMouse> <3-LeftMouse>
12+
noremap <4-RightMouse> <4-LeftMouse>
13+
noremap <RightDrag> <LeftDrag>
14+
noremap <RightRelease> <LeftRelease>
15+
noremap g<LeftMouse> <C-RightMouse>
16+
noremap g<RightMouse> <C-LeftMouse>
17+
noremap! <LeftMouse> <RightMouse>
18+
noremap! <LeftDrag> <RightDrag>
19+
noremap! <LeftRelease> <RightRelease>
20+
noremap! <RightMouse> <LeftMouse>
21+
noremap! <RightDrag> <LeftDrag>
22+
noremap! <RightRelease> <LeftRelease>

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,8 @@ static char *(features[]) =
748748

749749
static int included_patches[] =
750750
{ /* Add new patch number below this line */
751+
/**/
752+
1675,
751753
/**/
752754
1674,
753755
/**/

0 commit comments

Comments
 (0)