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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:43:36+00:00 2026-05-29T04:43:36+00:00

Im using Markdown in Vim to write a lot of text. I’m wondering if

  • 0

Im using Markdown in Vim to write a lot of text. I’m wondering if its possible to make Vim automatically start the next line with a bullet * or – if I’m currently working on a text line in the list, and then presses enter ?

A lot of other text editors does this (e.g. Notational Velocity) so it would be great if this is possible in Vim as well.

What I want Vim to do:

- List element 1
- List element 2[press enter]
- (We are automatically here, with the bullet)

And I only want this for Markdown files.

Hope you understand! Thnx!

  • 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-29T04:43:37+00:00Added an answer on May 29, 2026 at 4:43 am

    you need to set several vim variables to do it.

    let’s take ‘-‘ as example:

    :set com=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,b:-
    

    here the last 'b:-' is important. it means, vim will think ‘-‘ and a space([tab] too) as comment leader, and will automatically added after you pressed Enter or o (normal mode). this set by :set formatoptions . see following lines.

    you could check

    :h comments
    :h format-comments 
    

    for details

    :set formatoptions=tcroqln

    here ‘r’ and ‘o’ are used for your requirement.

    :h formatoptions 
    :h fo-table
    

    for details

    EDIT

    for adding markdown filetype. many resources on the net. simply gave a shot on google, got one:

    http://technicalpickles.com/posts/using-markdown-in-vim/

    change au to settings above, should work.

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

Sidebar

Related Questions

So I'm using Markdown to format text input from user: http://michelf.com/projects/php-markdown/ But I'm doing
I decide to learn more about vim and its syntax highlighting. Using examples for
I'm using PHP Markdown (version 1.0.1n, updated October 2009) to display text saved to
I want to make the format of my text just as below by using
I'm using HAML's markdown filter, like this: :markdown This is markdown text, yay! but
I was wondering how to generate permalinks from the following markup, using python markdown
The text could be stored in the database using either markdown, bbcode, html, etc.
I'm using markdown to edit this question right now. In some wikis I used
I've been using Markdown recently. One of my biggest problems with Markdown is that
I've been using Markdown for class notes, and it's great. I even do some

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.