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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:03:06+00:00 2026-05-25T23:03:06+00:00

The instructions on the Vim site says to just put the file in the

  • 0

The instructions on the Vim site says to just put the file in the /syntax folder. This works all right and well. But, for me to use the syntax I must set the following

:set syntax=go

Every single time. So, I know I am doing something wrong. I just don’t know what.

Here are some things from looking around,

My HTML5 syntax set is from Rodrigo’s HTML5 omnicomplete function and syntax vimball file. Though this uses some installation script to get it going.

As far as I can tell this would be my first manual adding of syntax file.

Also, my VIMRUNTIME is not set, well because there is no syntax.vim file, so from reading the documentation I see it checks for files via synload.vim

I even read the “Making Your Own Syntax Files” section, which says that same as above with the syntax=go option. Am I supposed to be detecting the .go filetype as described in new filetype section?

How can I enable syntax highlighting for GO by default?

This is for Mac Snow Leopard.

I don’t think it is this complicated but I decided to leave all the different documentation I skimmed. GO and Vim say to just add the file. But it is definitely not detecting it automatically

  • 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-25T23:03:07+00:00Added an answer on May 25, 2026 at 11:03 pm

    If you are using filetype detection in your ~/.vimrc file with the following line:

    filetype plugin indent on
    

    then you can place the file in the following folder:

    ~/.vim/after/ftplugin/go.vim
    

    or for windows

    ~/vimfiles/...
    

    For the filetype detection to work, would would want the autocmd in a file in the ftdetect folder:

    ~/.vim/ftdetect/go.vim
    

    and the contents would be:

    autocmd BufNewFile,BufReadPost *.go set filetype=go
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've followed all instructions given on this site with an empty .vim folder, but
I just downloaded a Vim plugin for Sass syntax highlight. The instructions say: install
I have seen instructions about creating a skeleton file in vim. This involves creating
I've loaded the cucumber.vim files into ftplugin and the other directories per instructions, but
I've been using pyclewn for debugging in vim . It works quite well on
Going by the instructions here: http://www.propelorm.org/wiki/Documentation/1.5/Existing-Database I've created a folder and placed a file
C.Vim works, as evidenced by the commands I've been using, syntax highlighting, and template.
All instructions to disable Visual Studio hosting process I've found says as follows: Open
I followed the instructions on source.android.com to build the Android framework, but when I
I followed the instructions on FreeBSD Handbook , but it doesn't work. $ pkg_info

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.