.vimperatorに以下の文字列を貼り付けておくだけで、;xでヒントモードに入り、そこで選んだ要素のXPathがvimperatorコマンドラインに出力され、コピーされる。 javascript <<EOM // ;x use FireBugLibrary(FBL) hints.addMode("x", "copy xpath", function(elem) { let xpath = FBL.getElementXPath(elem); liberator.echo(xpath); util.copyToClipboard(xpath); }, function() "//*"); EOM ただここで使っているFBL.getElementXpathはFirebugが提供するライブラリなのでFirebugはいってないと使えないですね。 ということを http://d.hatena.n
![vimperator 2.0preだと簡単にXPathを取得できる - hogelogの日記](https://cdn-ak-scissors.b.st-hatena.com/image/square/2420a62ce9661ea4c3c366c5d87d80695f2fa7c5/height=288;version=1;width=512/http%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fh%2Fhogelog%2F20081208%2F20081208125537.png)