æè¿ççã«JavaScriptãæ¸ãæ©ä¼ãå¢ããã®ã§vimã§æ´å½¢ãã¼ã«æ¬²ãããªã¨æã£ã¦ãã¾ããã ã§ãYappoããã®JavaScript::Swellã使ã£ã¦ã¿ããã¨ã«ãã¾ããã CPANã§ã¤ã³ã¹ãã¼ã«ãã¦ãããªã©ããã¼ä½ã£ã¦ ~/bin/js_swell.pl #!/usr/bin/perl use strict; use JavaScript::Swell; my $data; while (<>) { $data .= $_; } close IN; print JavaScript::Swell->swell($data); .vimrcããªããã«ãããªé¢¨ã«æ¸ããã map ,jt <Esc>:%! ~/bin/js_swell.pl<CR> ãããªã³ã¼ãã var i=0;if(i++){var a=-1;} vimãã:,jtã§ãããªé¢¨ã«ãªãã¾ãã var i = 0; i
{{#tags}}- {{label}}
{{/tags}}