reload ftdetect on the fly

9 views
Skip to first unread message

Renato Fabbri

unread,
May 15, 2018, 6:37:34 PM5/15/18
to vim_use
source the file(s) with the new relation {filename pattern} -> {set filetyle=somethig)?

the string search patterns for syntax highlighting
are reloaded when the file is reloaded (on the same Vim session/run/instance).
Something like that for setting filetypes would be useful (for me at least).

this is the ftdetect/ file:
https://github.com/ttm/prv/blob/master/pack/ttm/opt/wiki/ftdetect/wiki.vim

tx++

Reply all
Reply to author
Forward
0 new messages