Wednesday, June 22, 2011

Re: Exasperated with folding

On Jun 22, 2011 at 10:02 AM -0400, Eric Weir wrote:
>> au BufRead,BufNewFile *.ext :set ft=markdown
>I tried putting this in ~/.vim/after/ftplugin/markdown.vim and it
>didn't work. I moved it to my .vimrc and it worked. I don't know if
>that's the best place for it, though.

You want it in .vimrc. What the command means: Everytime a buffer
(file) is read or created (BufRead/BufNewFile) and the file ends in
'ext' (the *.ext part), set the filetype to markdown.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: