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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T19:51:15+00:00 2026-05-29T19:51:15+00:00

I have: $ vim –version VIM – Vi IMproved 7.3 (2010 Aug 15, compiled

  • 0

I have:

$ vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Dec  1 2011 03:25:24)

using Debian testing.

I was playing around with an old manpage I wrote and noticed that vim (I used gedit to write it initially but have switched to vim) is not recognizing it as a nroff/groff filetype upon loading or with a:

:filetype detect

It does syntax highlighting fine, of course, with:

:set filetype=groff

Anyone else have this behaviour and if so find a fix?

BTW, it recognizes html, bash, and python scripts correctly and sets the correct syntax highlighting. Just seems to balk at groff files that are saved without the [FILENAME].1-type suffix.

Cheerio,
Narnie

  • 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-29T19:51:18+00:00Added an answer on May 29, 2026 at 7:51 pm

    Vim can detect the filetype based on both the name of the file and the context. It appears that in this case vim only looks at the file name. You can write your own filetype detection script to figure out files of this type based on the context. The vim’s help has some basic instructions on how to do this. Basically you can just write a vim script that detects the file type and put it in $VIMRUNTIME/scripts.vim.

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

Sidebar

Related Questions

I have a version of Vim compiled with python 2.6 support enabled ( from
I have installed the vim-latex package using Ubuntu Synaptic package manager and updated my
I have recently started using Vim as my text editor and am currently working
I have a plugin that will only run if vim has been compiled with
I'm using CentOS, which appears to have vim installed by default. I located the
Basically, what I'm trying to do is have VIM search for dictionary/thesaurus results using
I have been using vim for about 3 weeks now and have been having
I have been trying to learn Vim and have been using it for 2
I'm relatively new to Vim and have been using it without issues so far.
I have Vim set up, with +python ( :version says it's ok). My .vimrc

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.