Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Vundle for VIM

Tags:

vim

vundle

I can't Install Vundle

I've followed the instructions on GitHub;

git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim

and that's all... Here's the tree of cd .vim

├── bundle
│   └── Vundle.vim
│       ├── autoload
│       │   ├── vundle
│       │   │   ├── config.vim
│       │   │   ├── installer.vim
│       │   │   └── scripts.vim
│       │   └── vundle.vim
│       ├── changelog.md
│       ├── CONTRIBUTING.md
│       ├── doc
│       │   └── vundle.txt
│       ├── LICENSE-MIT.txt
│       ├── README.md
│       └── test
│           ├── files
│           │   └── test.erl
│           ├── minirc.vim
│           └── vimrc
└── $MYVIMRC

7 directories, 13 files

and in .vimrc

set nocompatible               " be iMproved
filetype off 

in order to edit .vimrc I used in vim:

:e $MYVIMRC

Can you help get Vundle installed?

like image 923
Javittoxs Avatar asked Jan 03 '15 01:01

Javittoxs


People also ask

How to install plugin with Vundle Vim?

Manage Vim plugins with Vundle To install a plugin, move the cursor to the line that interests you and press «i». This will install the selected plugin. Replace vim-dasm with the name of any plugin. Now press the ESC key and type: wq to save the changes and close the file.

What is Vim bundle?

Vundle is short for Vim bundle and is a Vim plugin manager. Vundle allows you to... keep track of and configure your plugins right in the .vimrc. install configured plugins (a.k.a. scripts/bundle)


1 Answers

like @FDinoff said, you missed the stuff that should go in you .vimrc.

here is how it could look like:

" vundle {{{1

" needed to run vundle (but i want this anyways)
set nocompatible

" vundle needs filtype plugins off
" i turn it on later
filetype plugin indent off
syntax off

" set the runtime path for vundle
set rtp+=~/.vim/bundle/Vundle.vim

" start vundle environment
call vundle#begin()

" list of plugins {{{2
" let Vundle manage Vundle (this is required)
"old: Plugin 'gmarik/Vundle.vim'
Plugin 'VundleVim/Vundle.vim'

" to install a plugin add it here and run :PluginInstall.
" to update the plugins run :PluginInstall! or :PluginUpdate
" to delete a plugin remove it here and run :PluginClean
" 

" YOUR LIST OF PLUGINS GOES HERE LIKE THIS:
Plugin 'bling/vim-airline'

" add plugins before this
call vundle#end()

" now (after vundle finished) it is save to turn filetype plugins on
filetype plugin indent on
syntax on

you can check out my .vimrc if you want (https://github.com/linluk/my-dot-files/blob/master/vimrc).

as described in the comments you need to install plugins after adding them to your .vimrc

steps to install a plugin

  1. add it to you .vimrc between call vundle#begin() and call vundle#end()
  2. save the .vimrc
  3. type <ESC>:PluginInstall<CR>

to update the plugins

  1. type <ESC>:PluginInstall!<CR> or <ESC>:PluginUpdate<CR>

to remove a plugin

  1. remove it from the .vimrc
  2. save the .vimrc
  3. type <ESC>:PluginClean<CR>
like image 198
linluk Avatar answered Sep 26 '22 00:09

linluk