From 56a1588f96ead31fdfd503552d9ece6836da4c3e Mon Sep 17 00:00:00 2001 From: Vincent Li Date: Tue, 9 Jul 2024 02:01:54 +0000 Subject: [PATCH] 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 --- config/rootfiles/common/vim | 1 + config/vim/.vimrc | 1 + lfs/vim | 3 +-- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 config/vim/.vimrc diff --git a/config/rootfiles/common/vim b/config/rootfiles/common/vim index d6681fbd2..ad11dda31 100644 --- a/config/rootfiles/common/vim +++ b/config/rootfiles/common/vim @@ -1,4 +1,5 @@ etc/vimrc +root/.vimrc usr/bin/ex usr/bin/rview usr/bin/rvim diff --git a/config/vim/.vimrc b/config/vim/.vimrc new file mode 100644 index 000000000..0f457dbf4 --- /dev/null +++ b/config/vim/.vimrc @@ -0,0 +1 @@ +set mouse-=a diff --git a/lfs/vim b/lfs/vim index e40c511cf..5f1527bc9 100644 --- a/lfs/vim +++ b/lfs/vim @@ -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)