tpope / vim-pathogen

pathogen.vim: manage your runtimepath

Home Page:http://www.vim.org/scripts/script.php?script_id=2332

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unknown function: pathogen#infect

vitaly-zdanevich opened this issue · comments

Because I trying to move ~/.vim to the ~/.config/vim. I need to change some env for Pathogen?

I don't know where you got ~/.config/vim from. If you're running Neovim, it should be ~/.config/nvim.

It is possible to move ~/.vim to any other place?

I just wrote a shell script to automate my vim installation and I ran into this error as well using the default file configuration. Is there another step I'm overlooking here?

install.sh

echo 'cloning pathogen'
git clone https://github.com/tpope/vim-pathogen.git ~/.vim/autoload/pathogen.vim

echo 'cloning ctrl-p'
git clone https://github.com/ctrlpvim/ctrlp.vim.git ~/.vim/bundle/ctrlp.vim

echo 'cloning nerdtree'
git clone https://github.com/scrooloose/nerdtree.git ~/.vim/bundle/nerdtree

.vimrc snippet

execute pathogen#infect()
set nocompatible
syntax on
filetype plugin indent on
set ts=2 sts=2 sw=2 expandtab

error message

Error detected while processing /Users/swh_personal/.vimrc:
line    1:
E117: Unknown function: pathogen#infect
E15: Invalid expression: pathogen#infect()
Press ENTER or type command to continue

You're cloning a directory to a filename.

Ah, duh... Thanks.

https://github.com/argentum47/vim-rust-ide/
My ^ setup works with vim not with neovim. What am I missing. I get the same Unknow function pathogen#infect error. also I updated the version of pathogen in my autoload.

In Neovim you need to install in ~/.config/nvim instead (or add ~/.vim to your runtime path).