vim-table-mode icon indicating copy to clipboard operation
vim-table-mode copied to clipboard

[Enhancement] Allow for per-filetype config (or buffer-scoped character variables)

Open duckpuppy opened this issue 9 years ago • 4 comments

It would be incredibly nice if I could configure table mode to use markdown compatible tables if the filetype is markdown, but use the default style (which I think looks a little nicer) in other circumstances more easily. If the various character config variables were buffer-scoped rather than strictly global then the user could configure that with autocommands or ftplugin/ files.

For Markdown in particular, maybe that could be baked into the plugin.

duckpuppy avatar Mar 23 '16 14:03 duckpuppy

Yes that is a good idea. Let me work on it.

dhruvasagar avatar Mar 23 '16 15:03 dhruvasagar

FWIW, here's what I use:

if (&filetype ==# 'rst')
  let g:table_mode_corner_corner='+'
  let g:table_mode_header_fillchar='='
endif

polyzen avatar Mar 08 '17 06:03 polyzen

Right, although better is to place that configuration within a ftplugin.

dhruvasagar avatar Mar 08 '17 09:03 dhruvasagar

@dhruvasagar, noted. Thank you.

polyzen avatar Mar 08 '17 14:03 polyzen