Reputation: 545
I'm tring to load plugins for javascriopt and others.
I'm using Vundle
here is my ~/.vimrc
. (I'm using gvim on mac)
set nocompatible
filetype on
" set the runtime path to include Vundle and initialize
" set t_Co=256
syntax on
set nu
set background=light
colorscheme solarized
set laststatus=2
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#rc()
" Declare all plugins here
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
Plugin 'tpope/vim-fugitive'
" plugin from http://vim-scripts.org/vim/scripts.html
Plugin 'L9'
" Git plugin not hosted on GitHub
" Plugin 'git://git.wincent.com/command-t.git’
Plugin 'jelera/vim-javascript-syntax'
Plugin 'pangloss/vim-javascript'
Plugin 'nathanaelkane/vim-indent-guides'
Plugin 'Raimondi/delimitMate'
" All of your Plugin must be added before the following line
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :Bundle - lists configured plugins
" :Bundle - installs plugins; append `!` to update or just :Bundle
" :Bundle foo - searches for foo; append `!` to refresh local cache
" :Bundle - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
Directory structure at home ~/.vim
I'm using plugins suggested in this link
This is the js file screen shot.
Any idea about where I'm lacking, please share.
Upvotes: 1
Views: 1488
Reputation: 28169
It's because of some syntax errors in .vimrc
that Vundle is not working correctly. Older versions of vim needs
filetype off
before loading vundle plugins. Refer to this question for more details.
Also call vundle#end()
seems to be missing.
Please follow the following boiler plate and edit it according to your requirements.
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" Let vundle manage itself:
Plugin 'VundleVim/Vundle.vim'
" Syntax checking plugin
Plugin 'scrooloose/syntastic'
Plugin 'jelera/vim-javascript-syntax'
Plugin 'pangloss/vim-javascript'
Plugin 'nathanaelkane/vim-indent-guides'
Plugin 'Raimondi/delimitMate'
call vundle#end()
filetype plugin indent on " Filetype auto-detection
syntax on " Syntax highlighting
Upvotes: 1