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

  • Home
  • SEARCH
  • 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 9001075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:23:20+00:00 2026-06-16T00:23:20+00:00

I have read through the docs but cannot figure out if this is possible.

  • 0

I have read through the docs but cannot figure out if this is possible.

I want to keep the default setting of g:ctrlp_working_path_mode = 2, but I want the ability to manually override that for all buffers in the current window if I want.

Specifically, I want to issue a ctrlp command or change a ctrlp config variable that sets the root search directory, such that is uses that directory for all future searches, regardless of which buffer I’m in.

Bonus Question: Is it possible to set two root directories, so that it searches both of them and combines the results?

Thanks!

  • 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-16T00:23:20+00:00Added an answer on June 16, 2026 at 12:23 am

    Try this:

    let g:ctrlp_working_path_mode = ‘ra’

    ‘c’ – the directory of the current file.

    ‘r’ – the nearest ancestor that contains one of these directories or files: .git .hg .svn .bzr

    ‘a’ – like c, but only if the current working directory outside of CtrlP is not a direct ancestor of the directory of the current file.

    0 or ” (empty string) – disable this feature.

    Source: https://github.com/kien/ctrlp.vim

    Also, here: https://github.com/kien/ctrlp.vim/issues/292 , the author has provided one way to set fullpath:

    :CtrlP /var/www/myproject/bla/bla/theme
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This may be super easy, but I've read through the docs and can't find
I've read through all of the Spring 3 Web docs: http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/spring-web.html but have been
I have read through the Rails docs for Routing , Restful Resources , and
I have read through several articles which are alternatives to using setpixel/getpixel but I
I have read through some tutorials about javascript prototypal inheritance patterns but I am
This is probably not a dup; I have read through many similar problems on
I've read through the docs and searched on here, but I'm not quite understanding
http://docs.djangoproject.com/en/dev/ref/models/fields/#choices i've read through the documentation and this implies using a database table for
Ok so I have read through the Socket.IO docs and I am still a
I was trying out Backbonejs read through couple of docs. It is an MVC

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.