Vim vimrc配置

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

原文地址:https://www.cnblogs.com/jhc888007/p/7439784.html