vimrc的常用配置 filetype plugin indent on syntax on set number set cursorline set tabstop=4 set shiftwidth=4 set expandtab set softtabstop=4 set hlsearch set incsearch set ignorecase set smartcase set mouse=a if has('clipboard') set clipboard=unnamedplus endif set laststatus=2 set showmode set wrap set linebreak set showmatch set encoding=utf-8 set fileencoding=utf-8 set bomb set nocompatible set undofile set undodir=~/.vim/undodir if !isdirectory(expand('~/.vim/undodir')) call mkdir(expand('~/.vim/undodir'), 'p', 0700) endif set ttimeoutlen=0 set ttyfast