There is an elegant way:
let g:pluginname_setting = get(g:, 'pluginname_setting', "default")
I am surprised this is not widely used in plugin settings.
There is an elegant way:
let g:pluginname_setting = get(g:, 'pluginname_setting', "default")
I am surprised this is not widely used in plugin settings.