V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
guori12321
V2EX  ›  程序员

关于VIM的Vundle的使用问题

  •  
  •   guori12321 · 2013-02-13 00:36:58 +08:00 · 3976 次点击
    这是一个创建于 4090 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我尝试用Vundle很久了,但是插件什么的一直搞不明白。我把Vundle的配置放在了gvimrc的最后,然后安了两个插件,其中一个是可以用的,一个是不可以的,提示命令没有定义。我查了:scriptnames,确实是没有出现,但在BundleList里面是有的,所以很纠结。

    我的.vim文件:
    .
    ├── bundle
    │   ├── Conque-Shell
    │   │   ├── autoload
    │   │   │   ├── conque_term
    │   │   │   │   ├── conque_globals.py
    │   │   │   │   ├── conque.py
    │   │   │   │   ├── conque_screen.py
    │   │   │   │   ├── conque_sole_communicator.py
    │   │   │   │   ├── conque_sole.py
    │   │   │   │   ├── conque_sole_shared_memory.py
    │   │   │   │   ├── conque_sole_subprocess.py
    │   │   │   │   ├── conque_sole_wrapper.py
    │   │   │   │   ├── conque_subprocess.py
    │   │   │   │   └── conque_win32_util.py
    │   │   │   ├── conque_term.vim
    │   │   │   └── conque_term (复件).vim
    │   │   ├── doc
    │   │   │   ├── conque_term.txt
    │   │   │   └── tags
    │   │   ├── plugin
    │   │   │   └── conque_term.vim
    │   │   └── syntax
    │   │   └── conque_term.vim
    │   ├── vim-markdown
    │   │   ├── after
    │   │   │   └── ftplugin
    │   │   │   └── mkd.vim
    │   │   ├── ftdetect
    │   │   │   └── mkd.vim
    │   │   ├── README.md
    │   │   └── syntax
    │   │   └── mkd.vim
    │   └── vundle
    │   ├── autoload
    │   │   ├── vundle
    │   │   │   ├── config.vim
    │   │   │   ├── installer.vim
    │   │   │   └── scripts.vim
    │   │   └── vundle.vim
    │   ├── doc
    │   │   ├── tags
    │   │   └── vundle.txt
    │   ├── LICENSE-MIT.txt
    │   ├── README.md
    │   └── test
    │   ├── files
    │   │   └── test.erl
    │   ├── minirc.vim
    │   └── vimrc
    └── colors
    ├── molokai.vim
    └── zenburn.vim

    下面是我的gvimrc文件中有关Vundle的内容,它在~/.gvimrc的最后:
    "Vundle
    set nocompatible " be iMproved
    filetype off " required!

    set rtp+=~/.vim/bundle/vundle
    call vundle#rc()

    " let Vundle manage Vundle
    " required!
    Bundle 'git://github.com/guori12321/vundle.git'

    " My Bundles here:
    "
    " original repos on github
    "Bundle 'tpope/vim-fugitive'
    " vim-scripts repos
    "Bundle 'L9'
    " non github repos
    Bundle 'git://github.com/guori12321/Conque-Shell.git'
    Bundle 'git://github.com/plasticboy/vim-markdown.git'
    " ...

    filetype plugin indent on " required

    其中关于vim-markdown是有效的,Conque-Shell是无效的。因为发现github上的conque shell不全,没有.py文件,所以我自己在http://www.vim.org/scripts/script.php?script_id=2771下了一份,传到了自己的github上。
    好纠结啊!!!还是先谢谢大家了...
    4 条回复    1970-01-01 08:00:00 +08:00
    leofml
        1
    leofml  
       2013-02-13 01:25:16 +08:00   ❤️ 1
    试试:
    Bundle 'gmarik/vundle'
    Bundle 'rson/vim-conque'
    Bundle 'plasticboy/vim-markdown'
    qiukun
        2
    qiukun  
       2013-02-13 11:07:57 +08:00
    vundle 会不会导致 vim 第一次启动很慢
    dingstyle
        3
    dingstyle  
       2013-02-13 12:23:22 +08:00   ❤️ 1
    @qiukun 不会,Vundle只是将每个插件的目录添加到vim的runtime path里而已,启动速度的瓶颈通常在插件本身。
    guori12321
        4
    guori12321  
    OP
       2013-02-14 00:08:18 +08:00
    @leofml 好了~~好神奇 自己折腾了好久啊...
    我记得Vundle是可以直接打
    " non github repos
    Bundle 'git://git.wincent.com/command-t.git'
    的啊
    难道说是用的git://传送有问题吗...
    下次有问题的时候,还是多试几个vim插件库吧,再次感谢~~
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1943 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 16:22 · PVG 00:22 · LAX 09:22 · JFK 12:22
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.