set nocompatible
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
" The bundles you install will be listed here
Bundle 'scrooloose/nerdtree'
Bundle 'davidhalter/jedi-vim'
filetype plugin indent on
" The rest of your config follows here.
augroup vimrc_autocmds
autocmd!
" highlight characters past column 120
autocmd FileType python highlight Excess ctermbg=DarkGrey guibg=Black
autocmd FileType python match Excess /\%120v.*/
autocmd FileType python set nowrap
augroup END
" NerdTree Shortcut.
map <f2> :NERDTreeToggle<cr>
" automatically change window’s cwd to file’s dir
set autochdir
autocmd vimenter * NERDTree " 当打开vim时就显示NERDTree 可以通过F2来打开或关闭它
" Prefer spaces to tabs
set tabstop=4
set shiftwidth=4
set expandtab
set nu!
E 打开vim,键入命令“:BundleInstall”,等待自动安装插件完成(下面显示“done”)