vim 缩进、禁用鼠标、高亮、从上次编辑位置打开

来源:互联网 发布:视频裁切软件 编辑:程序博客网 时间:2024/05/02 04:31
" 从上次编辑位置打开
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

原创粉丝点击