Saturday, January 7, 2012

Javascript vim using jshint

I am trying to use javascript with vim. I have installed node, npm and
jshint.

from following a guide found on stack overflow to use these tools.
http://stackoverflow.com/a/5893447/461887

I am learning javascript amongst other things using this video
tutorials http://learn.appendto.com/lesson/javascript-102#67
As a result I also used this mapping so that I could F4 any results
and see errors and output.
nmap <F4> :w<CR>:make<CR>:cw<CR>

Now the thing that is causing me the boggle is that if I have a file
say from the video tutorial.

var something = "something",
saysomething = function (whattosay) {
whattosay += " i've appended something ";
console.log(whattosay);
};

saysomething(something);
console.log(something);

when I press F4 I get any applicable errors and having fixed them I
was waiting for the program output. However I cannot get any output.

All I am receiving is
:!jshint Programming/Javascript/10267.js 2>&1| tee /tmp/vjjSrCj/49

How can I get the program output to display?

Sayth

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: