Skip to content

Instantly share code, notes, and snippets.

@lylijincheng
Last active December 22, 2015 06:38
Show Gist options
  • Save lylijincheng/6432259 to your computer and use it in GitHub Desktop.
Save lylijincheng/6432259 to your computer and use it in GitHub Desktop.
_vimrc for windows($VIM/_vimrc); vimrc for linux (/etc/vim/vimrc)
"========== MY SETUP START ==========
"设置不兼容
set nocompatible
"设置默认字体
set guifont=Consolas:h9:cANSI
"设置配色方案
colo torte
syntax enable
"开启行号
set number
"内部编码
set encoding=utf-8
"内容编码
set fileencoding=utf-8
"可识别的文件编码
"set fileencodings=
"设置缩进
"set ts=4
set sw=4
set smarttab
set expandtab
"不生成备份
set nobackup
set nowb
set noswapfile
"自动缩进
set ai "Auto indent
set si "Smart indent
set wrap "Wrap lines
"关闭菜单栏
set guioptions-=m
"关闭工具栏
set guioptions-=T
"关闭滚动条
set guioptions-=r
"行数和列数
set lines=60 columns=120
"设置菜单
set langmenu=en_US
let $LANG="en_US.UTF-8"
language messages en_US.UTF-8
"========== MY SETUP END ==========
"========== COMMON SETUP START ==========
"文件类型插件
filetype plugin on
filetype indent on
"显示当前位置
set ruler
"命令条高度
set cmdheight=2
"隐藏Buffer
set hid
"配置退格键
set backspace=eol,start,indent
set whichwrap+=<,>,h,l
"搜索设置
set ignorecase
set smartcase
set incsearch
set hlsearch
"重绘
set lazyredraw
"正则表达式
set magic
"显示配对
set showmatch
set mat=2
"关闭声音
set noerrorbells
set novisualbell
set t_vb=
set tm=500
"========== COMMON SETUP END ==========
"========== PLUGINS SETUP START ==========
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
"let Vundle manage Vundle
Bundle 'gmarik/vundle'
"vim scripts repos
Bundle 'ctrlp.vim'
Bundle 'AutoClose'
Bundle 'ZenCoding.vim'
Bundle 'matchit.zip'
Bundle 'ShowTrailingWhitespace'
Bundle '_jsbeautify'
Bundle 'EasyMotion'
Bundle 'FencView.vim'
Bundle 'The-NERD-tree'
Bundle 'The-NERD-Commenter'
Bundle 'UltiSnips'
Bundle 'Tabular'
Bundle 'Valloric/YouCompleteMe'
"========== PLUGINS SETUP END ==========
"========== MY SETUP START ==========
"设置不兼容
set nocompatible
"设置默认字体
set guifont=Consolas:h9:cANSI
"设置配色方案
colo torte
syntax enable
"开启行号
set number
"内部编码
set encoding=utf-8
"内容编码
set fileencoding=utf-8
"可识别的文件编码
"set fileencodings=
"设置缩进
"set ts=4
set sw=4
set smarttab
set expandtab
"不生成备份
set nobackup
set nowb
set noswapfile
"自动缩进
set ai "Auto indent
set si "Smart indent
set wrap "Wrap lines
"GUI设置
set guioptions-=m
set guioptions-=T
set guioptions-=r
set lines=60 columns=120
"设置菜单
set langmenu=en_US
let $LANG="en_US.UTF-8"
language messages en_US.UTF-8
"========== MY SETUP END ==========
"========== COMMON SETUP START ==========
"文件类型插件
filetype plugin on
filetype indent on
"显示当前位置
set ruler
"命令条高度
set cmdheight=2
"隐藏Buffer
set hid
"配置退格键
set backspace=eol,start,indent
set whichwrap+=<,>,h,l
"搜索设置
set ignorecase
set smartcase
set incsearch
set hlsearch
"重绘
set lazyredraw
"正则表达式
set magic
"显示配对
set showmatch
set mat=2
"关闭声音
set noerrorbells
set novisualbell
set t_vb=
set tm=500
"========== COMMON SETUP END ==========
"========== PLUGINS SETUP START ==========
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
"let Vundle manage Vundle
Bundle 'gmarik/vundle'
"vim scripts repos
Bundle 'ctrlp.vim'
Bundle 'AutoClose'
Bundle 'ZenCoding.vim'
Bundle 'matchit.zip'
Bundle 'ShowTrailingWhitespace'
Bundle '_jsbeautify'
Bundle 'EasyMotion'
Bundle 'FencView.vim'
Bundle 'The-NERD-tree'
Bundle 'The-NERD-Commenter'
Bundle 'Tabular'
"Bundle 'UltiSnips'
"Bundle 'Valloric/YouCompleteMe'
"========== PLUGINS SETUP END ==========
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment