From dbfb5c541cd90f32cb6b5bbf96af3a70b75c1111 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Sun, 10 Aug 2025 13:42:01 +0800 Subject: Update --- vim/init/basic.vim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'vim') diff --git a/vim/init/basic.vim b/vim/init/basic.vim index ca352bd..87767a1 100644 --- a/vim/init/basic.vim +++ b/vim/init/basic.vim @@ -18,6 +18,7 @@ augroup END "}}} " For Buffer and Tab {{{ + augroup tabinfo au! @@ -38,16 +39,17 @@ augroup tabinfo endfunc augroup END + "}}} " GERERNAL {{{ let mapleader = "," " Always use comma as leader key -set nocompatible " Disable vi compatible, today is 2RemoveBufFromTabXX +set nocompatible " Disable vi compatible, today is 20XX ! set path=.,** " Allow :find with completion set mouse= " Disable mouse selection set winaltkeys=no " Allow alt key for mapping -set modelineexpr set hidden " Allow switch buffer without saving +set modelineexpr " More support in modeline " Turn persistent undo on " means that you can undo even when you close a buffer/VIM @@ -60,7 +62,6 @@ else set undodir=~/.vim/.undodir/vim endif - " Apply plugin and indent by filetype filetype plugin indent on @@ -80,7 +81,7 @@ set spellfile="/tmp/spell" set nowrap " disable wrap by default set scrolloff=3 " Leave some buffer when scrolling down set showmatch " Show pairing brackets -set display=lastline +set display=truncate set lazyredraw set whichwrap=b,s -- cgit v1.2.3-70-g09d2