##my vim settings
set number
set helplang=cn
set ai
set bs=2
set showmatch
set autoread
set autoindent
syntax on
set smartindent
"tab
set tabstop=4
set expandtab
set shiftwidth=4
" line
set cursorline
set hls
set nocompatible " be iMproved, required
filetype off " required
set encoding=utf-8
set fillchars+=stl:\ ,stlnc:\
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'tpope/vim-rails.git'
Bundle '[email protected]:scrooloose/nerdtree.git'
Bundle '[email protected]:Raimondi/delimitMate.git'
Bundle 'hallison/vim-markdown'
Bundle '[email protected]:kien/ctrlp.vim.git'
Bundle 'msanders/snipmate.vim'
" Powerline
let g:Powerline_symbols = 'fancy'
filetype plugin indent on " required
" NEADTree
autocmd vimenter * if !argc() | NERDTree | endif
map <C-n> :NERDTreeToggle<CR>
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
" CtrlP
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'
##How to use
git clone [email protected]:bashell/myVim.git ~/.vim
cp ~/.vim/vimrc ~/.vimrc