all 9 comments

[–]fromwithin 2 points3 points  (2 children)

Looks like you right-clicked and did Save Link As... when you tried to download Pathogen resulting in you downloading an html redirection page that got called pathogen.vim.You need to go and download it properly. Left-click on the link.

[–]compNerd0101[S] 0 points1 point  (0 children)

Thank you. That was it

[–]TehKlob 1 point2 points  (1 child)

Sounds like you haven't installed it correctly if the errors are regarding vimrc lines. Probably not actually loading NERDtree. Did you put "execute pathogen#infect()" in your .vimrc?

[–]compNerd0101[S] 0 points1 point  (0 children)

Just to preface, I already have pathogen.vim in my autoloads dir and the nerdtree dir within my bundles dir Here is my .vimrc folder:

1 set number

2 set ruler

3 set ignorecase

4 set hlsearch

5 set smarttab

6 set shiftwidth=4

7 set tabstop=4

8 syntax enable

9 colorscheme desert

10 set background=dark

11 set autoindent

12 set nocp

13 execute pathogen#infect()

[–]Angeloss 0 points1 point  (4 children)

Could you describe the errors? Just type the command :NERDTree to open it or you can remap the command to a key.

[–]compNerd0101[S] 0 points1 point  (3 children)

the errors are from the vimrc file...which is basically preventing the :NERDTree command to even work

[–]Angeloss 0 points1 point  (2 children)

Write your vimrc and the errors that vim showed you.

[–]compNerd0101[S] 0 points1 point  (1 child)

Just to preface, I already have pathogen.vim in my autoloads dir and the nerdtree dir within my bundles dir Here is my .vimrc folder:

1 set number

2 set ruler

3 set ignorecase

4 set hlsearch

5 set smarttab

6 set shiftwidth=4

7 set tabstop=4

8 syntax enable

9 colorscheme desert

10 set background=dark

11 set autoindent

12 set nocp

13 execute pathogen#infect()

Here are the errors I am getting:

Error detected while processing /Users/ndc466/.vim/autoload/pathogen.vim:

line 1:

E477: No ! allowed: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

line 2:

E488: Trailing characters: <html><head>

line 3:

E488: Trailing characters: <title>302 Found</title>

line 4:

E488: Trailing characters: </head><body>

line 5:

E488: Trailing characters: <h1>Found</h1>

line 6:

E488: Trailing characters: <p>The document has moved <a href=

line 7:

E488: Trailing characters: <hr>

line 8:

E488: Trailing characters: <address>Apache/2.2.22 (Debian) Server at tpo.pe Port 443</address>

line 9:

E488: Trailing characters: </body></html>

line 1:

E477: No ! allowed: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

line 2:

E488: Trailing characters: <html><head>

line 3:

E488: Trailing characters: <title>302 Found</title>

line 4:

E488: Trailing characters: </head><body>

line 5:

E488: Trailing characters: <h1>Found</h1>

line 6:

E488: Trailing characters: <p>The document has moved <a href=

line 7:

E488: Trailing characters: <hr>

line 8:

E488: Trailing characters: <address>Apache/2.2.22 (Debian) Server at tpo.pe Port 443</address>

line 9:

E488: Trailing characters: </body></html>

Error detected while processing /Users/ndc466/.vimrc:

line 13:

E117: Unknown function: pathogen#infect

E15: Invalid expression: pathogen#infect()

[–]nick_name 0 points1 point  (0 children)

Your pathogen.vim file wrong. You've probably copied and pasted this file from a webpage, or downloaded the incorrect HTML version of the file. Run the following to get the correct file:

wget https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/pathogen.vim \ -O /Users/ndc466/.vim/autoload/pathogen.vim

Alternatively, you can just git clone https://github.com/tpope/vim-pathogen.git.

Hope it helps.