diff --git a/Makefile b/Makefile index afabb36..4fb9918 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ ARCH = x86_64 URL = http://www.vim.org/ DESC = Vim is an advanced text editor that seeks to provide the power of \ the de-facto Unix editor 'Vi', with a more complete feature set. -SNAPVER = sr2 +SNAPVER = sr3 ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1) TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n') @@ -24,7 +24,9 @@ VERSION := $(shell echo $(ARCHIVE)|sed 's/\.tar.*//'| \ MAKE = make MAKEINST = make install -SNAPHACKS = ln -sv vim $(ROOT)/usr/bin/vi +SNAPHACKS = ln -sv vim $(ROOT)/usr/bin/vi && \ + mkdir -v $(ROOT)/etc && \ + echo "colorscheme slate" > $(ROOT)/etc/vimrc include /usr/share/snap/Makefile.snaplinux diff --git a/SRC/patches/02_disable_mouse.patch b/SRC/patches/02_disable_mouse.patch new file mode 100644 index 0000000..bc752c0 --- /dev/null +++ b/SRC/patches/02_disable_mouse.patch @@ -0,0 +1,16 @@ +diff -Naur a/runtime/defaults.vim b/runtime/defaults.vim +--- a/runtime/defaults.vim 2016-09-02 15:57:51.000000000 -0500 ++++ b/runtime/defaults.vim 2016-10-23 06:37:37.616000000 -0500 +@@ -66,9 +66,9 @@ + + " In many terminal emulators the mouse works just fine. By enabling it you + " can position the cursor, Visually select and scroll with the mouse. +-if has('mouse') +- set mouse=a +-endif ++"if has('mouse') ++" set mouse=a ++"endif + + " Switch syntax highlighting on when the terminal has colors or when using the + " GUI (which always has colors).