vim配置文件及存放位置

1. location: windows -> 自己用户名文件夹 (_vimrc); linux -> /home/yourname/.vimrc (自己创建这个文件)

2. my config:

linux:

" Turn on line numbering. Turn it off with "set nonu" 
set nu 

" Set syntax on
syntax on

" Indent automatically depending on filetype
filetype indent on
set autoindent

" Case insensitive search
set ic

" Higlhight search
set hls

" Wrap text instead of being on one line
set lbr

windows: 在上面基础上加下面支持中文配置

set encoding=utf-8
set termencoding=utf-8
set fileencodings=utf-8,chinese,latin-1
if has("win32")
set fileencoding=chinese
else
set fileencoding=utf-8
endif
language messages zh_CN.utf-8

 

posted @ 2013-01-18 09:19  NiJc  阅读(733)  评论(0编辑  收藏  举报