Thursday, February 4, 2016

Pathogen doesn't seem to work

Hey everyone, I just installed linux mint and tried installing pathogen on vim.

when I do tree .vim it displays the following:

.vim
├── autoload
│   └── pathogen.vim
└── bundle
├── gruvbox
│   ├── autoload
│   │   ├── airline
│   │   │   └── themes
│   │   │   └── gruvbox.vim
│   │   ├── gruvbox.vim
│   │   └── lightline
│   │   └── colorscheme
│   │   └── gruvbox.vim
│   ├── CHANGELOG.md
│   ├── colors
│   │   └── gruvbox.vim
│   ├── gruvbox_256palette_osx.sh
│   ├── gruvbox_256palette.sh
│   └── README.md
└── nerdtree
├── autoload
│   ├── nerdtree
│   │   └── ui_glue.vim
│   └── nerdtree.vim
├── CHANGELOG
├── doc
│   └── NERD_tree.txt
├── lib
│   └── nerdtree
│   ├── bookmark.vim
│   ├── creator.vim
│   ├── event.vim
│   ├── flag_set.vim
│   ├── key_map.vim
│   ├── menu_controller.vim
│   ├── menu_item.vim
│   ├── nerdtree.vim
│   ├── notifier.vim
│   ├── opener.vim
│   ├── path.vim
│   ├── tree_dir_node.vim
│   ├── tree_file_node.vim
│   └── ui.vim
├── LICENCE
├── nerdtree_plugin
│   ├── exec_menuitem.vim
│   └── fs_menu.vim
├── plugin
│   └── NERD_tree.vim
├── README.markdown
└── syntax
└── nerdtree.vim

18 directories, 33 files

I have the following lines in my .vimrc:
" Enable pathogen
execute pathogen#infect()
syntax on
filetype plugin indent on

Whenever I run vim with vim -u NONE and then use :so ~/.vimrc I'm getting the following errors:
Error detected while processing /home/hylke/.vimrc:
line 2:
E117: Unknown function: pathogen#infect
E15: Invalid expression: pathogen#infect()

This is what's being displayed in my runtimepath:
runtimepath=~/.vim,/var/lib/vim/addons,/usr/share/vim/vimfiles,/usr/share/vim/
vim74,/usr/share/vim/vimfiles/after,/var/lib/vim/addons/after,~/.vim/after

By the looks of it pathogen doesn't get executed at all and my runtimepath isn't being updated with the bundles that it should be. I've tried running NERDTreeFind but that shows me an error telling me the command doesn't exist.
Can anyone think of a reason why this doesn't seem to work?

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: