VundleVim / Vundle.vim

Vundle, the plug-in manager for Vim
http://github.com/VundleVim/Vundle.Vim
MIT License
23.93k stars 2.57k forks source link

Error while sourcing vimrc using source ~/.vimrc #743

Open mikema90 opened 8 years ago

mikema90 commented 8 years ago

VIM - Vi IMproved version 7.2 AND when I source ~/.vimrc bash: ~/.vimrc: line 5: syntax error near unexpected token (' bash: ~/.vimrc: line 5: call vundle#rc()' AND my .vimrc set nocompatible " be iMproved filetype off " required!

set rtp+=~/.vim/bundle/vundle/ call vundle#rc() " My Bundles here: " original repos on github Bundle 'tpope/vim-fugitive' Bundle 'Lokaltog/vim-easymotion' Bundle 'rstacruz/sparkup', {'rtp': 'vim/'} Bundle 'tpope/vim-rails.git' " ------ " vm-powerline plugin Bundle 'Lokaltog/vim-powerline' set laststatus=2 set t_Co=256 let g:Powerline_symbols='unicode' set encoding=utf-8 " ------ " commenter Bundle 'scrooloose/nerdcommenter' " ------

" 自动补全单引号,双引号等 Bundle 'Raimondi/delimitMate'

" 缩进对齐线 Bundle 'Yggdroot/indentLine'

" taglist Bundle 'taglist.vim' let Tlist_Show_One_File=1 let Tlist_WinWidth=30 let Tlist_Exit_OnlyWindow=1 let Tlist_Use_Left_Window=1 map <silent> <F10> :TlistToggle<cr>

" encoding and support set tenc=utf-8
set fenc=utf-8
set fencs=utf-8,usc-bom,gbk set fileencodings=utf-8,chinese,ucs-bom,latin-1,cp936,gbk set fileformat=unix set langmenu=zh_CN,utf-8 set termencoding=utf-8 let javascript_enable_domhtmlcss=1 let b:javascript_fold=1 set pastetoggle=<F9>

set modifiable set nobackup

set ambiwidth=double set autoread "autoload when file is modfied by outer program

set tabstop=4 " transfer tab to 4 space set expandtab set softtabstop=4

set incsearch " dynamically show when user is typing set hlsearch " highlight search content

set wrap "auto change line syntax on

set scrolloff=5 " line scroll when leave 5 lines from top or end

set formatoptions=tcqro "auto add * when change line in comment

" vim-scripts repos Bundle 'L9' Bundle 'FuzzyFinder' " ------ " auto match filetype filetype plugin on

" All of your Plugins must be added before the following line " call vundle#end() " required filetype plugin indent on " required

" Brief help -- 此处后面都是vundle的使用命令 " :BundleList - list configured bundles " :BundleInstall(!) - install(update) bundles " :BundleSearch(!) foo - search(or refresh cache first) for foo " :BundleClean(!) - confirm(or auto-approve) removal of unused bundles " see :h vundle for more details or wiki for FAQ " NOTE: comments after Bundle command are not allowed..

anyone know the reason?

xietren commented 8 years ago

Vundle has changed. Please read the official doc.

patientCat commented 6 years ago

please use source $MYVIMRC within vim not in bash