VIM Unable to install plugins - vim

I have some plugins already installed in VIM. They are working find. Recently I was trying to install Flake8 in my VIM through Vundle. When I type :BundleInstall andviro/flake8 it downloads well and installs the plugin. In addition I am able to see it by :BundleList. But when I restart the VIM it is not there. I tried to install other plugins also but when I restart the VIM lastly installed plugins are removed.

add the plugin to your .vimrc.
As it says vundle github page you want something like:
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Bundle 'gmarik/Vundle.vim'
Bundle 'andviro/flake8-vim'
call vundle#end()
typing just :BundleInstall will grab all of your addons listed in your .vimrc and make sure they're installed and updated.

Related

nvim-tree.lua installed through Vundle but its commands don't exist

I installed nvim-tree.lua using the Vundle plugin manager in my init.vim:
call vundle#begin()
Plugin 'kyazdani42/nvim-tree.lua'
call vundle#end()
source $HOME/.config/nvim/nvim_tree.vim
The nvim_tree.vim file includes:
nnoremap <C-n> :NvimTreeToggle<CR>
Sure enough, calling :PluginList lists the plugin correctly.
Checking bundle's runtime path ~/.vim/bundle/, the plugin files are all there.
However calling :NvimTreeToggle produces the error:
E492: Not an editor command: NvimTreeToggle
Turns out I completely ignored a change in the latest commit:
Options are currently being migrated into the setup function, you need to run require'nvim-tree'.setup() in your personal configurations.
So after :lua require'nvim-tree'.setup() everything works fine.

How standalone installation of vim plugin can be done in Unix

At my work I want to use vim plugins but I cannot install plugins via git hub command which are mentioned in forums. I need to install plugins manually by copying required files but it does not work. Can someone let me know how to install vim plugins manually in Linux environment .
Here are the steps i have done:
Downloaded github.com/VundleVim/Vundle.vim
Created ~/.vim/bundle, ~/.vim/plugin directories
Copied vundle.vim into ~/.vim/bundle/vundle.vim
I have copied below message in .vimrc file
set rtp+=~/.vim/bundle/vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'file:/nfs/iind/home/bvedula/.vim/plugin'
call vundle#end() " required
filetype plugin indent on " required
When i run vim in my xterm i get following error:
Error detected while processing ~/.vimrc,
E117: Unknown function: vundle#begin,
E492: Not an editor command: Plugin 'VundleVim/Vundle.vim',
E492: Not an editor command: Plugin 'file:~/.vim/plugin
The error says, that vundle#begin is unknown, means that Vundle.vim was not even loaded. Looks like you have vundle.vim instead of Vundle.vim (with uppercase first letter) in the set rtp+=~/.vim/bundle/vundle.vim.
But anyway Vundle is not a good choice if you don't have access to the Internet.
Instead you can use pathogen which doesn't try to download plugins and only loads them:
any plugins you wish to install can be extracted to a subdirectory
under ~/.vim/bundle, and they will be added to the 'runtimepath'

Installing Floobits with VIM

I'm trying to install the VIM Floobits plugin, but I'm having a lot of difficulty.
First off, I installed VIM from the VIM website and then I tried using Vundle to install the VIM Floobits Plugin.
The issue was that when I tried running the:PluginInstallcommand, I got the message "Sorry, the Floobits Vim plugin requires a Vim compiled with +python"
I'm not really sure what that means. So I looked that up and tried to use MinGW to compile vim with +python. That did not work. Next I tried building VIM from the sources, but the configure command does not work on Windows.
Does anyone know how to properly install Floobits for console VIM?
Oh, and here's the lines from my ~/.vimrc that pertain to Vundle:
" VUNDLE
set nocompatible " required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim " set the runtime path to include Vundle and initialize
call vundle#begin() " begin vundle
Plugin 'gmarik/Vundle.vim' " let Vundle manage Vundle, required
Plugin 'Floobits/floobits-vim' " add the floobits plugin
call vundle#end() " required; all plugins must be added before this line
You can find proper Vim builds for Windows here:
https://tuxproject.de/projects/vim/
http://solar-blogg.blogspot.ca/p/vim-build.html

My Vim plugins (installed with Vundle) aren’t loading

I'm trying to install the vim-scala and vim-sensible plugins using Vundle. I followed the directions here: https://github.com/gmarik/Vundle.vim
In my ~/.vim directory I have: a folder named 'bundle' with a Vundle.vim directory I downloaded from the tutorial.
In my ~/.vimrc I have:
set nocompatible
filetype off
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'tpope/vim-sensible'
Plugin 'derekwyatt/vim-scala'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
Then I open Vim, type
:PluginInstall
and my plugins are shown to be successfully installed. However, when I open Vim again, nothing changes.
Edit: I should note that I had the same problems using Pathogen, so I don't think this is a bug in Vundle.
Edit: My .vim and .vimrc are in /root/.vim; I am running on Linux.
According to the asker jeffrey, he resolved his problem. His plugins were loading, but he just did not realize it, because the plugins were not changing any obvious, visible Vim settings.

Can't search plugin in local but on the net when install Plugin with Vundle (configure Vim)

I have successfully installed the Vundle for vim
With the help-docs, i know that using command "PluginInstall **" can install this plugin
i have already download some plugins, but when i type :PluginInstall **
to install ** , it's not install ** from local but again search on the net.
So, how can i specify the path should this command ":PluginInstall" install plugin from where i want.
=======================for example:
:PluginSearch taglist
it shows
Plugin 'taglist-plus'
Plugin 'taglist.vim'
my local file is taglist_46 which download from www.vim.org/script.php?script_id=273‎
but it doesn't show up in result
First, you should add the follow settings in your vimrc:
Bundle 'taglist.vim'
And then, run :BundleInstall, Vundle will download the plugin automatically. (automatic is the important reason to using it)
By the way, Vundle using git download the plugin, it should be installed.
If you don't have git (In windows for example), you can download by manually of cause. Just move the taglist folder to the right path. It was set by rpt+=<the right path>. For example, my setting is:
if has('win32') || has('win64')
set rtp+=$VIM/bundle/vundle
call vundle#rc('$VIM/bundle')
else
set rtp+=~/.vim/bundle/vundle
call vundle#rc()
endif
Means the right path in Windows should be $VIM/bundle/vundle, and ~/.vim/bundle/vundle in Linux

Resources