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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:25:37+00:00 2026-05-22T02:25:37+00:00

When working with HTML with embedded Javascript, the syntax highlighting often gets out of

  • 0

When working with HTML with embedded Javascript, the syntax highlighting often gets out of sync. If I tell vim to always sync from the beginning of the file, navigation is too slow. I was wondering if there is a way to tell vim on command to sync from the beginning of the file. As in, “ok this is the code I’m working on, make it look right”.

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-05-22T02:25:38+00:00Added an answer on May 22, 2026 at 2:25 am

    I reckon this would work:

    :syn sync fromstart
    

    but maybe you omitted some conditions/criteria from the question, why this is not eligible?

    Alternatively, I suppose

    :syn sync minlines=99999
    

    should have a similar effect on most source files (hopefully for you!).

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

Sidebar

Related Questions

I'm working with a bit of html and Javascript code that I've taken over
I am working on a winforms html editor with multiple editor windows as each
I'm working on a simple HTML scraper for Hulu in python 2.6 and am
The .NET web system I'm working on allows the end user to input HTML
I asked how to render a UserControl's HTML and got the code working for
I'm an email n00b but I am working on an application that sends HTML
My question is related to HTML, and PURE html. I am working on a
Background I am working on a project that runs in an embedded web browser
In the past whilst working with AJAX-submitted forms, I have always created the forms
I'm working on a phonegap iPhone app which downloads content from the network in

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.