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 6756483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:31:45+00:00 2026-05-26T13:31:45+00:00

When I search some file with command-T it often failes to find it because

  • 0

When I search some file with command-T it often failes to find it because I’m not in the right directory, so I have to change the directory.

Is it possible to set that command-T will search first in the directories that are bookmarked in Nerdtree or somewhere else?

I could change the directory to / but this search very large scope of files. When I change the dir to my home directory and I’m looking for something ordinary like .bashrc I will find rather many files that are located under .wine directory.

In 99 % of time I need to search files in project directories that I actively work with. Can I set these directories in some preferences?

  • 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-05-26T13:31:46+00:00Added an answer on May 26, 2026 at 1:31 pm

    According to the documentation you can exclude directories from your search:

                                                *command-t-wildignore*
      |'wildignore'|                                 string (default: '')
    
       Vim's |'wildignore'| setting is used to determine which files should be
      excluded from listings. This is a comma-separated list of glob patterns.
      It defaults to the empty string, but common settings include "*.o,*.obj"
      (to exclude object files) or ".git,.svn" (to exclude SCM metadata
      directories). For example:
    
         :set wildignore+=*.o,*.obj,.git
    
       A pattern such as "vendor/rails/**" would exclude all files and
      subdirectories inside the "vendor/rails" directory (relative to
      directory Command-T starts in).    
    

    So if you wanted to exclude a backup dir, you would write:

    set wildignore+=project/backup
    

    in your .vimrc

    In addition, to ignore dotfiles/dotdirs you can look into these options:

    g:CommandTNeverShowDotFiles
    g:CommandTScanDotDirectories
    g:CommandTMaxDepth
    

    These allow you to:
    – ignore dotfiles completely;
    – stop searching recursively in dotdirs;
    – specify at what depth should Command-T stop scanning.

    I found this information in the author’s git, but you can probably see this document by issuing in vim:

    :help Command-T
    

    (or a similar name)

    I did not see any reference to preferences or bookmarks in the plugin.
    However if you start vim by opening a file in said project directory you might want to add this line to your .vimrc:

        set autochdir
    

    This option will set on startup your directory to the current file’s directory.

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

Sidebar

Related Questions

I've found a PDF file of Appstore search API, that I can use some
I have a folder full of files and I want to search some string
I have already search for some time over the net on how to create
I used the following find command to search files find /tmp -regex .*some_file How
I'm trying to run some shell command if a string is not present in
I use the following command to find under /var some param in my script
How can I use grep command to search file name based on a wild
I have search all over the web, but unable to find an answer, so
I have a class A which reads an XML file and does some processing.
i have a batch(backup.bat)file.in that i have written a command to create a backup

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.