Vimscript in autoload/*.vim could get reloaded every time a undefined
function ncm2_d#foobar is called. Undefined function should not happen
normally. But adding a guard stops the script from messing up further
when bad things happen.
Replace get(g:, 'g:name', default) with get(g:, 'name', default).
This allows user to define their own g:name config.
Vimscript in autoload/*.vim could get reloaded every time a undefined function ncm2_d#foobar is called. Undefined function should not happen normally. But adding a guard stops the script from messing up further when bad things happen.
Replace get(g:, 'g:name', default) with get(g:, 'name', default). This allows user to define their own g:name config.