set mouse=
set nocompatible
set encoding=utf-8 syntax on set autoindent set smartindent set tabstop=4 set softtabstop=4 set expandtab set ai! set cindent shiftwidth=4 set number set ruler set laststatus=2 set statusline=%<%F\ [%l] if has("autocmd") autocmd BufReadPost * \ if line("'\"") > 0 && line("'\"") <= line("$") | \ exe "normal g`\"" | \ endif endif
参考文献:cnblogs.com/lovevivi/archive/2013/07/24/3210864