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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:30:40+00:00 2026-06-05T20:30:40+00:00

I have written a vim script for highlighting the syntax of a proprietary query

  • 0

I have written a vim script for highlighting the syntax of a proprietary query language. It works fine on my Windows 7 machine running gvim 7.3, but it refuses to work on Linux (my test box is CentOS 6). I have gotten the built-in language highlight scripts to work in CentOS, but for some reason any custom syntax scripts I add to the /usr/share/vim/vim72/syntax directory are not recognized even when I explicitly run

:set filetype=on
:set syntax=on
:set ft=cy

with cy.vim being the name of my syntax script. I checked out the ftplugin scripts to see if there was anything special pointing a filetype to a syntax script, but I couldn’t see anything… I have another cy.vim file there anyway which reads

augroup cy,Q,q
au BufNewFile,BufRead *.cy,*.Q,*.q set filetype=cy 
augroup end

normally I just keep the above in my _vimrc file, but as I can’t even get the highlighting to work with explicit commands I doubt automatic filetype recognition on load would work.
Can anyone shed some light on why my syntax script works perfectly on Windows but not at all on Linux? I have tried all the usual avenues already, such as making sure I have vim-common/vim-full/vim-enhanced installed rather than vim-minimal/vim-tiny. Any help would be appreciated!

thanks,
CCJ

  • 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-05T20:30:42+00:00Added an answer on June 5, 2026 at 8:30 pm

    I believe the issue may have been with my xterm settings; on Solaris I ran into the same problem until I explicitly set the xterm window to support text colors and updated ncurses, per the wiki here: http://vim.wikia.com/wiki/Getting_colors_to_work_on_solaris
    I haven’t been able to revisit on CentOS Linux yet, but this solved the problem for Solaris

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

Sidebar

Related Questions

I have written a web service that seems to be running fine - I
I have written a DB2 query to do the following: Create a temp table
I have written a program that uses qhttp to get a webpage. This works
I have lots of directories with text files written using (g)vim, and I have
I have written a short python script that opens Google music in web view
I am very new to JAVA. I have written simple program (in Linux -VIM
I have written a Linq to CRM query using CRM 2011 RC (v5) LINQ-to-CRM
While editing this and that in Vim, I often find that its syntax highlighting
I have written a ruby script which opens up dlink admin page in firefox
I have written a bash script which installs a number of packages, however for

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.