首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未加载的vim插件: mac

未加载的vim插件: mac
EN

Stack Overflow用户
提问于 2016-12-07 12:26:57
回答 1查看 1.4K关注 0票数 1

我正在尝试为javascriopt和其他插件加载插件。我在用Vundle这里是我的~/.vimrc。(我在mac上使用gvim )

代码语言:javascript
复制
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

home ~/..vim目录结构

我正在使用此链接中建议的插件

这是js文件屏幕截图。

如果你知道我缺少什么,请告诉我。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-12-08 13:29:33

由于.vimrc中的一些语法错误,Vundle无法正常工作。旧版本的vim需要

代码语言:javascript
复制
filetype off

加载vundle插件之前。有关详细信息,请参阅此问题

此外,call vundle#end()似乎也不见了。

请按照以下的锅炉板,并根据您的要求进行编辑。

代码语言:javascript
复制
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
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/41017488

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档