Skip to content

Instantly share code, notes, and snippets.

@vclwei
Created August 16, 2013 04:57
Show Gist options
  • Save vclwei/6247433 to your computer and use it in GitHub Desktop.
Save vclwei/6247433 to your computer and use it in GitHub Desktop.
My vimrc
call pathogen#infect()
syntax on
filetype plugin indent on
set number
set hlsearch
highlight TabLine term=underline cterm=bold ctermfg=9 ctermbg=4
highlight TabLineSel term=bold cterm=bold ctermbg=Red ctermfg=yellow
:color blackboard
" 设置编码
set enc=utf-8
" 设置文件编码
set fenc=utf-8
" 设置文件编码检测类型及支持格式
set fencs=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
" VBundle
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
" My Bundles here:
Bundle 'tpope/vim-rails.git'
Bundle 'scrooloose/nerdtree'
Bundle 'Lokaltog/vim-powerline'
Bundle 'kien/ctrlp.vim'
Bundle "MarcWeber/vim-addon-mw-utils"
Bundle "tomtom/tlib_vim"
Bundle "garbas/vim-snipmate"
filetype plugin indent on " required!
"
" see :h vundle for more details or wiki for FAQ
" NOTE: comments after Bundle command are not allowed..
"
" VBundle End
" Powerline
set laststatus=2 " Always show the statusline
" NERDTree
let NERDChristmasTree=1
nmap <F2> :NERDTreeToggle<CR>
" CtrlP
nmap <F3> :CtrlPBuffer<CR>
nmap <F4> :CtrlPMRU<CR>
map tt O<Esc>j
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment