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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:10:49+00:00 2026-05-11T16:10:49+00:00

The default assembly syntax file didn’t work well and searching the web about gas

  • 0

The default assembly syntax file didn’t work well and searching the web about gas assembly I found nothing about a gas (AT&T) syntax file for vim. Has anyone found this? I can’t write my own syntax file.

http://img168.imageshack.us/img168/46/nasm.png ft=nasm

http://img160.imageshack.us/img160/5857/asm.png ft=asm(default)

http://img164.imageshack.us/img164/8476/tasm.png ft=tasm

  • 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-11T16:10:50+00:00Added an answer on May 11, 2026 at 4:10 pm

    This may get you started. Is that more like what you’re looking for?

    Just had a quick search – it looks like there are a few different sorts of assembly syntax highlighting built in. Which one are you using?

    Copy-pasted from :help syntax

    Currently these syntax
    files are included:
        asm     GNU assembly (the default)
        asm68k      Motorola 680x0 assembly
        asmh8300    Hitachi H-8300 version of GNU assembly
        ia64        Intel Itanium 64
     fasm Flat assemlby http://flatassembler.net
        masm        Microsoft assembly (probably works for any 80x86)
        nasm        Netwide assembly
        tasm        Turbo Assembly (with opcodes 80x86 up to Pentium, and
                MMX)
        pic     PIC assembly (currently for PIC16F84)
    
    The most flexible is to add a line in your assembly file containing:
        :asmsyntax=nasm
    Replace "nasm" with the name of the real assembly syntax.  This line must be
    one of the first five lines in the file.
    

    This additional syntax script is from vim.org

    It looks like your screenshot is using the default asm filetype.
    Try

    :set ft=nasm
    

    and you should get some colour changes as per these screenshots.

    ft=nasm

    From your screenshots above I’ve made a couple of quick modifications to the fasm vim syntax and called it gasm.
    It can be found here on pastebin.

    Copy and paste that into your personal .vim/syntax or vimfiles/syntax directory and call it gasm.vim
    Then in your assembly file :set ft=gasm

    This vim script relies on comments being of the form
    % comment
    with the space included.
    You can see this (or change it if you wish) on line 116 of the script.

    Please note: Don’t copy the line numbers.

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

Sidebar

Ask A Question

Stats

  • Questions 105k
  • Answers 105k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Something like this I guess: <configSections> <section name="validationXsds" type="System.Configuration.DictionarySectionHandler, System"… May 11, 2026 at 8:49 pm
  • Editorial Team
    Editorial Team added an answer UIImage's can have borders at the sides and bottom that… May 11, 2026 at 8:49 pm
  • Editorial Team
    Editorial Team added an answer Here is an example LDIF file that adds an attribute… May 11, 2026 at 8:49 pm

Related Questions

I have the following code in a web.config file of the default IIS site.
Question I am trying to dynamically get the default for a type that is
I changed the output path of the test project, because the default path doesn't
I'm interested in finding something out. In Delphi the default since the begining when
I would like the version property of my application to be incremented for each

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.