hawkins / Touchdown.vim

A Vim plugin for Markdown editing focused on To-Do lists, supporting GitHub Flavored Markdown
0 stars 1 forks source link

Only apply to markdown files #8

Closed hawkins closed 6 years ago

hawkins commented 6 years ago

I'd like the plugin logic like folding to only apply to markdown files. How can I accomplish this?

hawkins commented 6 years ago

Maybe this is a non-issue, and we just add settings to disable features like g:touchdown__enable_list_folding or something.

Also in the code, we can check &ft to see if it is .md or .markdown etc, but I'm not sure that's idiomatic vimscript

hawkins commented 6 years ago

Turns out ftplugin is the key: http://vim.wikia.com/wiki/File_type_plugins