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.
Related
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'
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.
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.
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.
Hello I am trying to install some plugins and use vundle as my plugin manager.
When I open gvim this is the error that I get
Error detected while processing /home/user/.vimrc:
line 9:
E117: Unknown function: vundle#rc
line 12:
E492: Not an editor command: Bundle 'gmarik/vundle'
And here is the snippet of the top of my .vimrc file
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundel/
call vundle#rc()
"Required Bundel Statement
Bundle 'gmarik/vundle'
"User Installed Bundles
Bundle 'neocomplcache/neocomplcache.vim'
Bunlde 'perlomni/perlomni.vim'
filetype plugin indent on
filetype on
syntax on
I installed it according to git hub and according to the read me that was downloaded with it.
I do not have access to a super user account so trying to unistall and reinstall vim will not work.
Also I tried installing pathogen and that worked for some bundles but would not work for perlomni.vim because it was an ftplugin and pathogen was not appending the bundles correctly and after research I saw most people saying vundle was better than pathogen.
Can anyone help me get my bundles working correctly?
I am trying to use either bundles downloaded from a git repository or a bundles that are stored on a shared root directory.
Thanks
You spelled vundle wrong in your set rtp line
set rtp+=~/.vim/bundle/vundel/
should probably be
set rtp+=~/.vim/bundle/vundle/