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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:29:24+00:00 2026-06-17T11:29:24+00:00

I want to configure Vim such that when the [No Name] buffer is open,

  • 0

I want to configure Vim such that when the [No Name] buffer is open, the syntax is set to markdown. Is this possible? I couldn’t see such kind of hook in Vim’s help.

I’m using Vim 7.3, compiled with --with-features=huge.

  • 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-17T11:29:25+00:00Added an answer on June 17, 2026 at 11:29 am

    This is mentioned on the vim tips wiki:

    " default filetype
    let g:do_filetype = 0
    au GUIEnter,BufAdd * if expand('<afile>') == "" | let g:do_filetype = 1 | endif
    au BufEnter * if g:do_filetype | setf markdown | let g:do_filetype = 0 | endif
    

    Why the need to use a global variable, and not set the filetype immediately, is to my understanding, because the buffer hasn’t been fully created when the autocmd is triggered.

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

Sidebar

Related Questions

I want to configure my Python logger in such a way so that each
I want to configure maven in such a way that, whenever, the compile goal
I want to configure this so that it doesn't restart automatically, but I have
I want to configure my Rails routing such that these cases work: /username #=>
I want to configure my log4j logging to not log messages that are 1)
I want to configure the tree view component so that would be the topmost
I have an xml file that I want to configure using a bash script.
I want to configure appender that will send logs to wcf service. I've already
I want to configure a Forwarding-Appender in log4net, that does the following: It buffers
I want to configure it so that svn diff filename shows the diff in

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.