From 247d1cec06f711d92b810126d56bec5183e62497 Mon Sep 17 00:00:00 2001 From: "Panashe M. Fundira" Date: Sun, 31 Jul 2016 16:29:41 -0400 Subject: [PATCH] vim-patch:7.4.1675 #5142 Problem: The swapmous plugin has to be copied or sourced to be used. Solution: Turn it into the swapmouse package. https://github.com/vim/vim/commit/e101204906e10f1e100e2f9017985c61f26b03ac Justification for changes that do not carry over - `Filelist` does not exist in neovim - neovim does not have a `README.txt` in `runtime/macros` --- runtime/macros/swapmous.vim | 25 +++---------------- .../dist/opt/swapmouse/plugin/swapmouse.vim | 22 ++++++++++++++++ src/nvim/version.c | 2 +- 3 files changed, 26 insertions(+), 23 deletions(-) create mode 100644 runtime/pack/dist/opt/swapmouse/plugin/swapmouse.vim diff --git a/runtime/macros/swapmous.vim b/runtime/macros/swapmous.vim index 8b85be050b..5884d83473 100644 --- a/runtime/macros/swapmous.vim +++ b/runtime/macros/swapmous.vim @@ -1,22 +1,3 @@ -" These macros swap the left and right mouse buttons (for left handed) -" Don't forget to do ":set mouse=a" or the mouse won't work at all -noremap -noremap <2-LeftMouse> <2-RightMouse> -noremap <3-LeftMouse> <3-RightMouse> -noremap <4-LeftMouse> <4-RightMouse> -noremap -noremap -noremap -noremap <2-RightMouse> <2-LeftMouse> -noremap <3-RightMouse> <3-LeftMouse> -noremap <4-RightMouse> <4-LeftMouse> -noremap -noremap -noremap g -noremap g -noremap! -noremap! -noremap! -noremap! -noremap! -noremap! +" Load the swapmouse package. +" For those users who were loading the swapmous plugin from here. +packadd swapmouse diff --git a/runtime/pack/dist/opt/swapmouse/plugin/swapmouse.vim b/runtime/pack/dist/opt/swapmouse/plugin/swapmouse.vim new file mode 100644 index 0000000000..8b85be050b --- /dev/null +++ b/runtime/pack/dist/opt/swapmouse/plugin/swapmouse.vim @@ -0,0 +1,22 @@ +" These macros swap the left and right mouse buttons (for left handed) +" Don't forget to do ":set mouse=a" or the mouse won't work at all +noremap +noremap <2-LeftMouse> <2-RightMouse> +noremap <3-LeftMouse> <3-RightMouse> +noremap <4-LeftMouse> <4-RightMouse> +noremap +noremap +noremap +noremap <2-RightMouse> <2-LeftMouse> +noremap <3-RightMouse> <3-LeftMouse> +noremap <4-RightMouse> <4-LeftMouse> +noremap +noremap +noremap g +noremap g +noremap! +noremap! +noremap! +noremap! +noremap! +noremap! diff --git a/src/nvim/version.c b/src/nvim/version.c index 705bc808d7..ea20d22bcb 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -602,7 +602,7 @@ static int included_patches[] = { // 1678 NA // 1677 NA // 1676, - // 1675, + 1675, // 1674 NA // 1673, // 1672 NA