Skip to main content
7 events
when toggle format what by license comment
Nov 24, 2016 at 17:32 comment added Patrick Ziegler It's alright. Changing the filetype while editing is something that rarely ever happens and if it does you can just either reload the file or set tw manually
Nov 24, 2016 at 17:26 comment added Martin Tournoij @patrick96 It's probably best to update the question with the commands your using and contents of the file you're sourcing, so I (or someone else) can reproduce the problem and fix it.
Nov 24, 2016 at 17:11 comment added Patrick Ziegler unfortunately not. FileType fires when setting the file type but before the file type plugins are sourced
Nov 24, 2016 at 17:09 comment added Martin Tournoij @patrick96 I think you're looking for the FileType event? autocmd FileType * call s:SetColorColumn().
Nov 24, 2016 at 17:01 vote accept Patrick Ziegler
Nov 24, 2016 at 17:01 comment added Patrick Ziegler Must have totally skipped over that event when reading the docs, works like a charm. Minor issue: the OptionSet event does not seem to fire when I set the file type myself while editing and the plugin changes the textwidth, do you know of any event that could handle such a case? I'm going to accept this answer though, because that's not something that's going to happen very often.
Nov 24, 2016 at 16:47 history answered Martin Tournoij CC BY-SA 3.0