wookiehangover / jshint.vim

JSHint fork of jslint.vim
Other
194 stars 45 forks source link

Why does jshint.vim call JSHintUpdate on dd, dw, u, <C-r> ? #44

Closed yuzeh closed 8 years ago

yuzeh commented 9 years ago

See: https://github.com/wookiehangover/jshint.vim/blob/master/ftplugin/javascript/jshint.vim#L66-69

This is causing a noticeable slowdown, as JSHintUpdate calls JSHint, which kind of defeats the purpose of setting g:JSHintUpdateWriteOnly = 1.

eddiemonge commented 9 years ago

Thats a bug. There should be a check at https://github.com/wookiehangover/jshint.vim/blob/master/ftplugin/javascript/jshint.vim#L134 for JSHintUpdateWriteOnly