aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-rw-r--r--vim/init/basic.vim9
1 files changed, 5 insertions, 4 deletions
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
18 18
19"}}} 19"}}}
20" For Buffer and Tab {{{ 20" For Buffer and Tab {{{
21
21augroup tabinfo 22augroup tabinfo
22 au! 23 au!
23 24
@@ -38,16 +39,17 @@ augroup tabinfo
38 endfunc 39 endfunc
39 40
40augroup END 41augroup END
42
41"}}} 43"}}}
42" GERERNAL {{{ 44" GERERNAL {{{
43 45
44let mapleader = "," " Always use comma as leader key 46let mapleader = "," " Always use comma as leader key
45set nocompatible " Disable vi compatible, today is 2RemoveBufFromTabXX 47set nocompatible " Disable vi compatible, today is 20XX !
46set path=.,** " Allow :find with completion 48set path=.,** " Allow :find with completion
47set mouse= " Disable mouse selection 49set mouse= " Disable mouse selection
48set winaltkeys=no " Allow alt key for mapping 50set winaltkeys=no " Allow alt key for mapping
49set modelineexpr
50set hidden " Allow switch buffer without saving 51set hidden " Allow switch buffer without saving
52set modelineexpr " More support in modeline
51 53
52" Turn persistent undo on 54" Turn persistent undo on
53" means that you can undo even when you close a buffer/VIM 55" means that you can undo even when you close a buffer/VIM
@@ -60,7 +62,6 @@ else
60 set undodir=~/.vim/.undodir/vim 62 set undodir=~/.vim/.undodir/vim
61endif 63endif
62 64
63
64" Apply plugin and indent by filetype 65" Apply plugin and indent by filetype
65filetype plugin indent on 66filetype plugin indent on
66 67
@@ -80,7 +81,7 @@ set spellfile="/tmp/spell"
80set nowrap " disable wrap by default 81set nowrap " disable wrap by default
81set scrolloff=3 " Leave some buffer when scrolling down 82set scrolloff=3 " Leave some buffer when scrolling down
82set showmatch " Show pairing brackets 83set showmatch " Show pairing brackets
83set display=lastline 84set display=truncate
84set lazyredraw 85set lazyredraw
85set whichwrap=b,s 86set whichwrap=b,s
86 87