Closed vheon closed 9 years ago
I think that's reasonable.
@vheon Would be interesting to see what was slow in that case..
I would like nomodifiable files to look good, too - of course.. ;)
See https://github.com/tpope/vim-sleuth/issues/35 regarding a way to trigger it automatically.
Actually, I often view read-only source code [eg system libraries], and it would be very helpful to have them properly detected so that they are auto-folded. @vheon , would you be open to reconsidering, and making a blacklist or a help
-specific behaviour?
I didn't think about folding. Let's try checking &buftype ==# 'help'
instead.
Makes perfect sense. Do you think that would also be a good place to check on a blacklist of filetypes while we're at it, as per #29 ?
That could potentially be added on, but start with the buf type check if you want a quick merge.
I noticed that when I open a vim help file I get a little lag. I profiled it and it was vm-sleuth guessing options. Since I think it is not useful to guess options for a file opened with
view
or any file in read-only mode, it seemed more general to disable based on themodifiable
flag instead of special case thehelp
filetype or make a blacklist.