gvim not recognizing NERDTree as an editor command - vim

I'm using gvim and following the windows setup steps of vundle:
https://github.com/gmarik/Vundle.vim/wiki/Vundle-for-Windows
After the steps, I found the nerdtree plugin is successfully installed, I can find it under ~/vimfiles/bundle.
And I customize the _vimrc file like below:
set rtp+=~/vimfiles/bundle/Vundle.vim/
let path='~/vimfiles/bundle'
call vundle#begin(path)
Plugin 'scrooloose/nerdtree'
So I restarted gvim, and type :NERDTree, the editor is raising the error:E492 Not and editor command: NERDTree
What I'm doing wrong here?

You need to have a call vundle#end() after all your plugin declarations for vundle to actually modify your runtime path.

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.

E492: Not an editor command: TagbarToggle

I've succeeded to install tagbar with vim-plug in my .vimrc file. I've also installed a keybinding that use F8 to open tagbar. However, each time I use that key, I obtained the error in the title. Could anyone be able to tell me how to fix it?
The keybinding is : nmap <F8> :TagbarToggle<CR>
The plugin is build like
call plug#begin()
Plug 'majutsushi/tagbar'
# ...
call plug#end()
looks like you haven't installed the plugin correctly.
did you run install in command mode?
:PlugInstall
You also need to install the ctags binary since its a dependency if you don't already have it. https://github.com/majutsushi/tagbar#dependencies

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'

VIM Unable to install plugins

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.

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.

Resources