I have my own detection of the file indent settings based on the file contents. All good and works ok for my needs but...
When I open a
c source file of the vim itself it overrides options set by
/* vi:set ts=8 sts=4 sw=4 noet: * * VIM - Vi IMproved› by Bram Moolenaar * * Do ":help uganda" in Vim to read copying and usage conditions. * Do ":help credits" in Vim to see a list of people who contributed. * See README.txt for an overview of the Vim source code. */
I would like not to set indent options based on the file contents(in my func) if file has corresponding
modeline options set.
So is there a way I can detect it in vimscript?