I added following line of code in .vimrc
let g:jslint_status = 'enabled'
if exists("jslint_status")
echo jstlint_status
else
echo 'not found'
endif
Error message
E121: Undefined variable: jstlint_status
E15: Invalid expression: jstlint_status
What am I doing wrong?
Double-check your spelling. You’re checking if
jslint_statusexists, but you’re echoingjstlint_status. Notice that extra T – the third character in the misspelled variable name.