-1

I am new to vim, I watched this video and wish to give it a good try for a month to see how I like it.

I want to add the NERDTree plugin to my vim, I'm actually using NeoVIM:

NVIM v0.4.4
Build type: Release
LuaJIT 2.0.5

I Googled and found this article. It seemed straightforward but when I followed the steps, it doesn't seem to work for me, so I guess I'm missing something.

~|⇒ ls ~/.vim/pack/vendor/start   
nerdtree
~|⇒ ls -l ~/.vim/pack/vendor/start/nerdtree
total 164
drwxr-xr-x 3 jwan jwan  4096 Feb 21 11:29 autoload
-rw-r--r-- 1 jwan jwan 30828 Feb 21 11:29 CHANGELOG.md
-rw-r--r-- 1 jwan jwan    26 Feb 21 11:29 _config.yml
drwxr-xr-x 2 jwan jwan  4096 Feb 21 11:29 doc
drwxr-xr-x 3 jwan jwan  4096 Feb 21 11:29 lib
-rw-r--r-- 1 jwan jwan   474 Feb 21 11:29 LICENCE
drwxr-xr-x 2 jwan jwan  4096 Feb 21 11:29 nerdtree_plugin
drwxr-xr-x 2 jwan jwan  4096 Feb 21 11:29 plugin
-rw-r--r-- 1 jwan jwan  8429 Feb 21 11:29 README.markdown
-rw-r--r-- 1 jwan jwan 87896 Feb 21 11:29 screenshot.png
drwxr-xr-x 2 jwan jwan  4096 Feb 21 11:29 syntax

According to the article, that should be all that I have to do! The article says:

Now you can place Vim plugins in ~/.vim/pack/vendor/start, and they'll automatically load when you launch Vim.

That doesn't seem to happen for me! When I have vim open and I type :NERDTree I just get:

E492: Not an editor command: NERDTree

What am I missing?

J86
  • 225
  • 2
  • 10

2 Answers2

0

I couldn't deal with the hassle. So I just installed neovim and installed standalone vim. I figured most online articles and documentation will refer to standalone vim too.

Things worked straight away.

enter image description here

J86
  • 225
  • 2
  • 10
0

I would just stick to pathogen until you get familiarized with how things work. I started moving things to the 'pack/yourname/start' one day and things started breaking. That being said I am working on a plugin and 'pack/myname/start' seems to work fine. Pack is a great way to separate your plugins. If you notice tpope plugins usually go in there.

ritchie
  • 253
  • 1
  • 9