File names I can’t jump to frustrate me. Today I ran
$ npx eslint and my computer said “I looked at a file, and found a problem on this line, in this column. Do you want to see it? Good for you. Go type out the file name in your editor then."
ButI wanted a jump list of all the eslint errors in my project. Eslint is a kind of compiler, right? Vim knows compilers.
:set makeprg=npx\ eslint\ -f\ unix
Now I can
I can now see all of the errors and warnings for the project, and nimbly jump betwixt.Tweet