drhanlau
drhanlau

Reputation: 2527

Macvim space indent using Markdown

I am editing Markdown using Macvim and may I know is there anyway that I can set it, so that whenever I enter, the space indent on the previous line is maintain. I don't want to use TAB for every single line. Thanks.

Upvotes: 0

Views: 261

Answers (1)

Marco Baldelli
Marco Baldelli

Reputation: 3728

Try enabling the autoindent option:

:set autoindent

or:

:set ai

Explanation from Vim manual:

'autoindent' 'ai'   boolean (default off)
        local to buffer
Copy indent from current line when starting a new line (typing <CR>
in Insert mode or when using the "o" or "O" command). 

Upvotes: 2

Related Questions