blob: 5cd36691a0e0fc038e279153cf2f3177c1e357d8 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001set showcmd " show (partial) command in status line
2set showmatch " show matching brackets
3set incsearch " incremental search
4"set autowrite " automatically save before commands like :next and :make
5set nocompatible " use Vim defaults instead of 100% vi compatibility
6set backspace=indent,eol,start " more powerful backspacing
7set autoindent " always set autoindenting on
8set linebreak " don't wrap words by default
9set textwidth=0 " don't wrap lines by default
10set ruler " show the cursor position all the time
11
12set backupskip+=/etc/crontabs.* " fix crontab -e
13
14if filereadable(expand("$VIMRUNTIME/syntax/synload.vim"))
15 syntax on
16endif
17if has("syntax") && &term =~ "xterm"
18 set t_Co=8
19 if has("terminfo")
20 set t_Sf=<Esc>[3%p1%dm
21 set t_Sb=<Esc>[4%p1%dm
22 else
23 set t_Sf=<Esc>[3%dm
24 set t_Sb=<Esc>[4%dm
25 endif
26endif
27
28" Uncomment out for line and/or relative numberig
29" set number
30" set rnu