" 从上次编辑位置打开
if has("autocmd")
autocmd BufRead *.txt set tw=78
autocmd BufReadPost *
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
\ exe "normal g'\"" |
\ endif
endif
set number
" 自动缩进
set autoindent
" 禁用鼠标
set mouse-=a
" 语法高亮
syntax on
if has("autocmd")
autocmd BufRead *.txt set tw=78
autocmd BufReadPost *
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
\ exe "normal g'\"" |
\ endif
endif
set number
" 自动缩进
set autoindent
" 禁用鼠标
set mouse-=a
" 语法高亮
syntax on