// (c) 2009. Gabor Grothendieck. // This is free software licensed under GPL. // // To use with vim place these two lines in your _vimrc file // To find the directory where _vimrc goes enter this in vim :echo $HOME // // map :!start cmd /c clip2r.js // imap :!start cmd /c clip2r.js var wsh = new ActiveXObject("Wscript.Shell"); wsh.AppActivate("Rgui"); wsh.SendKeys("% x%{w}1^{v}");