Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8828589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:38:29+00:00 2026-06-14T07:38:29+00:00

I have started working with pathogen.vim with gvim on Windows, following Tim Pope’s setup

  • 0

I have started working with pathogen.vim with gvim on Windows, following Tim Pope’s setup guide at his github repository here.

However, I’m running into the problem that pathogen#infect() does not seem to be modifying the runtimepath (as seen by running :echo &runtimepath in gvim).

The simple test case _vimrc that I came up with is as follows. Please note that pathogen gets loaded just fine.

"Set a base directory.
let $BASE_DIR='H:\development\github\vimrc'

"Source pathogen since it's not in the normal autoload directory.
source $BASE_DIR\autoload\pathogen.vim

"Start up pathogen
call pathogen#infect()
"call pathogen#infect('$BASE_DIR\functions')

Neither running pathogen#infect() without an argument (which should add the bundles directory under the vimfiles directory) nor specifying a directory to contain files works.

Substituting the pathogen#infect() call with pathogen#runtime_prepend_subdirectories('$BASE_DIR\functions'), which is what pathogen#infect() does fails to change the runtimepath as well.

Any ideas that I’ve missed? Any more information that would be helpful?

My repository with the non-trivial example is here.

EDIT

In addition to creating directories under the directory I infected, as mentioned by qqx, I renamed those directories to plugin and colors which Vim will automatically load vim files from.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T07:38:30+00:00Added an answer on June 14, 2026 at 7:38 am

    pathogen#infect() doesn’t add the bundle directory or the directory named in the argument to &runtimepath, only subdirectories of that directory. In your github repository, the vimrc file uses the functions directory as the argument, but that directory only has files in it no subdirectories.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have started working on yii framework and I am following the yii blog
I have started working on some algorithm problems when I saw a problem asking
I have started working on a simple XML pull-parser, and as I've just defuzzed
I have started working on a project which requires Natural Language Processing. We have
I have started working with enhanced for loops due to it's best practices and
We have started working on VS11 projects involving a DDD - Agile - TDD
I am working on ubuntu OS,I have started working on pentaho-BI using eclipse.. Just
I am a newbie to Ruby on Rails . I have started working on
This is a very elementary I realize, I have recently started working with asp.net
I have just started leaning and working on xquery with java. I have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.