Tags: vitalk/vim-fancy
Tags
Merge pull request #1 from vitalk/fenced-block-configuration Add support of custom fenced block per filetype, and allow to refine existing rules via `vimrc`. The `g:fancy_filetypes` has the following format: ```vim let g:fancy_filetypes = { \ 'filetype_a': [format_a, format_b], \ 'filetype_b': [format_c], \ } let format_a = { \ 'start_at': start_of_the_block_regexp, \ 'end_at': end_of_the_block_regexp, \ 'filetype': function_to_detect_filetype, \ } fun! function_to_detect_filetype(fancy) return 'my_format' endf ``` Note, that `function_to_detect_filetype` has access to `fancy` object.