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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:37:32+00:00 2026-05-10T17:37:32+00:00

Right now I have the following in my .vimrc : au BufWritePost *.c,*.cpp,*.h !ctags

  • 0

Right now I have the following in my .vimrc:

au BufWritePost *.c,*.cpp,*.h !ctags -R 

There are a few problems with this:

  1. It’s slow — regenerates tags for files that haven’t changed since the last tag generation.
  2. I have to push the enter button again after writing the file because of an inevitable ‘press Enter or type command to continue’.

When you combine these two issues I end up pushing the additional enter too soon (before ctags -R has finished), then see the annoying error message, and have to push enter again.

I know it doesn’t sound like a big deal, but with the amount of file writes I do on a given day it tends to get really annoying. There’s gotta be a better way to do it!

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-10T17:37:33+00:00Added an answer on May 10, 2026 at 5:37 pm

    au BufWritePost *.c,*.cpp,*.h silent! !ctags -R &

    The downside is that you won’t have a useful tags file until it completes. As long as you’re on a *nix system it should be ok to do multiple writes before the previous ctags has completed, but you should test that. On a Windows system it won’t put it in the background and it’ll complain that the file is locked until the first ctags finishes (which shouldn’t cause problems in vim, but you’ll end up with a slightly outdated tags file).

    Note, you could use the --append option as tonylo suggests, but then you’ll have to disable tagbsearch which could mean that tag searches take a lot longer, depending on the size of your tag file.

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

Sidebar

Related Questions

Right now I have the following code working: @UiHandler(usernameTextBox) void onUsernameTextBoxKeyPress(KeyPressEvent event) { keyPress(event);
I want to match dates that have the following format: 2010-08-27, 2010/08/27 Right now
Right now I have the following piece of code: RSpec::Matchers.define :include_an_html_tag do |tag| tag
Right now I have the following links in my code: <script src=@Url.Content(~/Scripts/jquery-1.4.4.min.js) type=text/javascript></script> etc
Right now I have the following code: String[] values = {str1, str2}; Utils.myMethod(values); I
Right now I have the following Jquery, which when clicking on a table row
Right now I have the following code: @model IEnumerable<MvcAuction.Models.Furniture> @{ ViewBag.Title = Search; }
Right now I have the following javascript dictionary var a = {}; a['SVG343'] =
Right now I have the following code set up: $(function() { $('.thumbnail').mouseenter(function() { $('.thumbnail').fadeOut(200,
right now I have the following query in a stored procedure. select * from

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.