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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:57:26+00:00 2026-06-08T07:57:26+00:00

If I open a given mail file in ~/maildir-sent/ then file has no syntax

  • 0

If I open a given mail file in ~/maildir-sent/ then file has no syntax highlighting. Vi has default highlighting for mail files, and I can turn this on manually with


:set ft=mail

This doesn’t occur by default because mail files there have the awkward name structure 1339174749.7162_2.tm24-s00418:2,S

How do I make mail files highlighting occur by default? I.E. I presume this default reads like “all files that are not matched by another syntax highlight definition”

  • 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-08T07:57:28+00:00Added an answer on June 8, 2026 at 7:57 am

    Use an autocmd in your .vimrc:

    autocmd BufRead ~/maildir-sent/* setlocal ft=mail
    

    See :help autcmd for more information.

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

Sidebar

Related Questions

I know I can open a given file, and hitting CTRL + SHIFT +
I'd like to be able to open a given file, and see that This
I'm creating a program to open .txt files in a given directory, I have
I mean this module : Option I can't find it, open Option gives me
This question has been asked before and no definite answer has been given. I'm
I want to open a given file directory/subdirectory/file.txt in golang. What is the recommended
Given this code: readFile = new FileStream(FilePath, FileMode.Open); streamReader = new StreamReader(readFile); dsSheet =
I need a free(open-source) solution that given the lat/lng can return the closet city/state
I want to open a file whose name should be given as string to
Given this code: using (var conn = new SqlConnection(...)) { conn.Open(); using (var cmd

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.