vim: Disable vim automatic visual mode on mouse select

when mouse select, vim automatically turns into
visual mode, this is not convienent when copy
and paste in vim with mouse select. create this
setting for root user.

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
This commit is contained in:
Vincent Li
2024-07-09 02:01:54 +00:00
parent aa7d243558
commit 56a1588f96
3 changed files with 3 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
etc/vimrc
root/.vimrc
usr/bin/ex
usr/bin/rview
usr/bin/rvim

1
config/vim/.vimrc Normal file
View File

@@ -0,0 +1 @@
set mouse-=a

View File

@@ -83,8 +83,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
ln -svf vim /usr/bin/vi
install -m 644 $(DIR_SRC)/config/vim/vimrc /etc/vimrc
touch /root/.vimrc
echo "set mouse-=a" >> /root/.vimrc
install -m 644 $(DIR_SRC)/config/vim/.vimrc /root/.vimrc
@rm -rf $(DIR_APP)
@$(POSTBUILD)