Disabled mouse in default.vim and added a default /etc/vimrc

This commit is contained in:
2016-10-23 06:51:07 -05:00
parent 01146deaee
commit 4acaba8465
2 changed files with 20 additions and 2 deletions

View File

@@ -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

View File

@@ -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).