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 iMprovedfiletype off " required!
set rtp+=~/.vim/bundle/vundle/call vundle#rc()" My Bundles here:" original repos on githubBundle 'tpope/vim-fugitive'Bundle 'Lokaltog/vim-easymotion'Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}Bundle 'tpope/vim-rails.git'" ------" vm-powerline pluginBundle 'Lokaltog/vim-powerline'set laststatus=2set t_Co=256let g:Powerline_symbols='unicode'set encoding=utf-8" ------" commenterBundle 'scrooloose/nerdcommenter'" ------
" encoding and supportset tenc=utf-8 set fenc=utf-8 set fencs=utf-8,usc-bom,gbkset fileencodings=utf-8,chinese,ucs-bom,latin-1,cp936,gbkset fileformat=unixset langmenu=zh_CN,utf-8set termencoding=utf-8let javascript_enable_domhtmlcss=1let b:javascript_fold=1set pastetoggle=<F9>
set modifiableset nobackup
set ambiwidth=doubleset autoread "autoload when file is modfied by outer program
set tabstop=4 " transfer tab to 4 spaceset expandtabset softtabstop=4
set incsearch " dynamically show when user is typingset hlsearch " highlight search content
set wrap "auto change linesyntax 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 reposBundle 'L9'Bundle 'FuzzyFinder'" ------" auto match filetypefiletype plugin on
" All of your Plugins must be added before the following line" call vundle#end() " requiredfiletype 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..
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 .vimrcset 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?