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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:12:07+00:00 2026-06-01T14:12:07+00:00

I use vim on both FreeBSD and Linux os, sharing the same .vimrc configuration

  • 0

I use vim on both FreeBSD and Linux os, sharing the same .vimrc configuration file. There’s one problem that on FreeBSD the ctags binary path is /usr/local/bin/exctags, while on linux it’s /usr/bin/ctags. So how to detect the OS type and set ctags binary path separately?

UPDATE:
I found once the taglist plugin is installed, it will automatically detect ctags path and store it in g:Tlist_Ctags_Cmd variable.

  • 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-01T14:12:08+00:00Added an answer on June 1, 2026 at 2:12 pm

    I faced the same issue some time ago, and I solved it this way:

    if executable('exctags')
       " On Free-BSD, exuberant ctags is installed as exctags
       let l:sCtagsName = 'exctags'
    elseif executable('ctags')
       let l:sCtagsName = 'ctags'
    endif
    

    and then I use variable l:sCtagsName to call ctags. This works nice for me.

    And, as long as you use ctags in Vim, why not to use the plugin Indexer which is made especially for that? It automatically generates tags for all files of project(s) and keeps tags up-to-date. You might want to check my another answer to get more details.

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

Sidebar

Related Questions

When I use Vim to navigate the source codes such as Linux and Android,
Sometimes I want to use a minimal vim configuration, so with pathogen I have
I am trying to use snipMate and pydiction in vim together - however, both
I use Vim with ctags for development. I found ctags to be very useful
I use Vim 7.3 on FreeBSD. I connect to this machine through Putty. When
I use Vim and GIT to develop my project on a Linux/Ubuntu machine. In
I'm currently collaborating with a colleague on a project and we both use Vim
When I'm on Windows, I use notepad++, and on Linux I use vim. I
is there a way to use the a.vim plugin to switch between .h, .cxx
When dealing with .vimrc configuration files in Linux and Windows (two systems I've been

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.