1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
| set pastetoggle=<F10>
syntax on set showcmd set wrap set nocompatible "set number " 显示行号 set cursorline set nobackup set autochdir set backupcopy=yes set autoread set ignorecase smartcase "set nowrapscan " 禁止在搜索到文件两端时重新搜索 set incsearch set hlsearch set noerrorbells set novisualbell set t_vb= set showmatch set matchtime=2 set wrap set magic set hidden set smartindent set backspace=indent,eol,start set cmdheight=1 set laststatus=2 "set foldenable " 开始折叠 "set foldmethod=syntax " 设置语法折叠 set foldcolumn=0 setlocal foldlevel=1 set foldclose=all set encoding=utf-8 fileencodings=ucs-bom,utf-8,cp936,latin1
"set ruler " 一个简单的状态栏 set statusline=\ %<%F[%1*%M%*%n%R%H]%=\ %y\ %0(%{&fileformat}\ [%{(&fenc==\"\"?&enc:&fenc).(&bomb?\",BOM\":\"\")}]\ %c:%l/%L%)\
set tabstop=4 set smarttab set shiftwidth=4 set softtabstop=4 set expandtab "set mouse=a " 允许使用鼠标
"autocmd BufWritePre * :%s/\s\+$//e " 与Markdown换行语法冲突
"remember last update or view postion"
if has("autocmd") autocmd BufRead *.txt set tw=78 autocmd BufReadPost * if line("'\"") > 0 && line ("'\"") <= line("$") | exe "normal g'\"" | endif endif
|