Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can we use Vundle to manage Cmder's vim plugins? Need some setup? #535

Closed
mintisan opened this issue Jun 23, 2015 · 6 comments
Closed

can we use Vundle to manage Cmder's vim plugins? Need some setup? #535

mintisan opened this issue Jun 23, 2015 · 6 comments

Comments

@mintisan
Copy link

  1. firstly, I clone vundle into cmder\vendor\msysgit\share\vim\bundle
  2. then Launch vim and run :PluginInstall
  3. at last, Cmder ouput Not an editor command: PluginInstall
    20150623195424

Does anyone encounter this problem?

@daxgames
Copy link
Member

daxgames commented Nov 9, 2015

I use vundle with vim in cmder. It works fine.

@daxgames
Copy link
Member

I use this in Cmder using the bash shell. It could probably work with Cmd based shell but currently that is not a requirement for me so i have not investigated it. Its not portable at this time in that it is not a part of Cmder but I am thinking about trying to make it portable.

My ~/.vim folder, the only thing I cloned there manually was 'Vundle.vim'

/c/Users/]username]/.vim/
▾ bundle/
  ▸ gundo.vim/
  ▸ lightline.vim/
  ▸ nerdtree/
  ▸ tabular/
  ▸ vim-fugitive/
  ▸ vim-ps1/
  ▸ Vundle.vim/
  ▸ YankRing.vim/
▸ colors/
▸ doc/
▸ plugin/
  colors.tar
  vundles.vim

In my ~/.vimrc file

" =============== Vundle Initialization ===============
" This loads all the plugins specified in ~/.vim/vundles.vim
" Use Vundle plugin to manage all other plugins
if filereadable(expand("~/.vim/vundles.vim"))
  source ~/.vim/vundles.vim
endif

In ~/.vim/vundles.vim

set nocompatible              " be iMproved, required
filetype off                  " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

" 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

Bundle 'tpope/vim-fugitive'
Bundle 'scrooloose/nerdtree'
Bundle "itchyny/lightline.vim"
Bundle "godlygeek/tabular"
Bundle "sjl/gundo.vim"
Bundle "skwp/YankRing.vim"
Bundle "PProvost/vim-ps1"

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

filetype plugin indent on    " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList       - lists configured plugins
" :PluginInstall    - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean      - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ

Hope this helps.

@mintisan
Copy link
Author

mintisan commented Jan 5, 2016

@daxgames
Very Thank you for your so detailed answer.
I know it works well in Linux as you sayed.

But what is ~ path stand for in Cmder?

if my Cmder directory is D:\Program Files\cmder. And Vim directory is D:\Program Files\cmder\vendor\git-for-windows\usr\share\vim\vim74 .

Thank you for taking the time to read this and hopefully responding.

@daxgames
Copy link
Member

daxgames commented Jan 5, 2016

"~" is "%userprofile%" so "c:\users[username]".

@daxgames
Copy link
Member

daxgames commented Jan 5, 2016

Note vundle commands like :PluginInstall only work in vim launched from a bash cmder session. I have been unable to make them work in vim launched from cmd.

@mintisan
Copy link
Author

mintisan commented Jan 5, 2016

@daxgames It woks fine, Thanks again!

20160105175811

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants