dhruvasagar / vim-table-mode

VIM Table Mode for instant table creation.
2.11k stars 96 forks source link

Automatically setup table options #137

Closed idbrii closed 5 years ago

idbrii commented 5 years ago

Readme mentions settings for Markdown and ReST, but we can apply them automatically for the current filetype.

If a user is editing a no filetype scratch buffer, they'll still need to configure these options themselves. But this provides better defaults when editing a buffer of these filetypes.

Adds get_buffer_or_global_option that could be used for any other buffer-local (filetype-specific) options.

dhruvasagar commented 5 years ago

Hi,

Thanks for your contribution, I think this is a step in the right direction, I will review this and try to merge quickly.