.vimrc

" General

set nocompatible
set nobackup
set noswapfile
set history=1024
set autochdir
set whichwrap=b,s,<,>,[,]
set nobomb
set backspace=indent,eol,start whichwrap+=<,>,[,]
" Vim 的默认寄存器和系统剪贴板共享
set clipboard+=unnamed
" 设置 alt 键不映射到菜单栏
set winaltkeys=no

" Lang & Encoding

set fileencodings=utf-8,gbk2312,gbk,gb18030,cp936
set encoding=utf-8
set langmenu=zh_CN
let $LANG = 'en_US.UTF-8'
"language messages zh_CN.UTF-8

" Format

set autoindent
set smartindent
set tabstop=4
set expandtab
set softtabstop=4
set textwidth=79
set sw=4
set showmatch
syntax on

punkmonday /
Published under (CC) BY-NC-SA in categories life  tagged with linux  vim