Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vim, installing pathogen Windows

I tried to install vim plugin on my Windows OS but it don't work. fist I'm going to show you my vim directoris architecture then to show you my _vimrc.vim file:

C:\Program Files (x86)\Vim >

17/07/2017  16:15    <DIR>          vim80
17/07/2017  17:45    <DIR>          vimfiles
17/07/2017  17:50               200 _vimrc

inside vim80 no changes added.

C:\Program Files (x86)\Vim\vimfiles

17/07/2017  17:47    <DIR>          autoload
17/07/2017  16:52    <DIR>          bundle
17/07/2017  17:05    <DIR>          config
17/07/2017  16:42    <DIR>          plugin

And this is how look like my ./vimfiles directorie Inside I created 4 directorie first one: ./autoload for the pathogen symlink,

C:\Program Files (x86)\Vim\vimfiles\autoload

17/07/2017  17:12    <SYMLINK>      pathogen.vim [C:\Program Files (x86)\Vim\vimfiles\plugin\pathogen\autoload\pathogen.vim]

As you see pathogen plugin is inside ./plugin/pathogen/autoload/pathogen.vim Then I creat a ./bundle directories for all the other plugins like NERDTree :

C:\Program Files (x86)\Vim\vimfiles\bundle

17/07/2017  16:52    <DIR>          nerdtree

Then this is my vimrc.vim file:

set nocompatible

" Initialisation de pathogen:
execute pathogen#infect()
execute pathogen#helptags()

runtime! $VIM/vimfiles/config/**/*.vim 

I don't know why but when I try to use :NERDTree this message appear:

E492: Unknow command line :NERDTree

Please if someone can help me? Thank you

like image 865
CallMarl Avatar asked Dec 20 '25 16:12

CallMarl


1 Answers

Move pathogen

from C:\Program Files (x86)\Vim\vimfiles\plugin\pathogen\autoload\pathogen.vim

to C:\Program Files (x86)\Vim\vimfiles\autoload\pathogen.vim

(I removed plugin/pathogen)

Because you installed pathogen as a 'normal' pluggin so that pathogen can find it but patogen must be directly copied as a vim extension: it is a package manager itself so must be loaded the old way.

like image 101
Tinmarino Avatar answered Dec 22 '25 07:12

Tinmarino



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!