在百度贴吧中使用vimperator

默认的hints不能用,在配置文件中加入如下,可以使用f直接进入编辑区域 重点就是使用xpath识别一下输入框

set hinttags=//input[not(@type=\'hidden\'\ or\ @disabled)]\ |\ //xhtml:input[not(@type=\'hidden\'\ or\ @disabled)]\ |\ //a\ |\ //xhtml:a\ |\ //area\ |\ //xhtml:area\ |\ //iframe\ |\ //xhtml:iframe\ |\ //textarea\ |\ //xhtml:textarea\ |\ //button\ |\ //xhtml:button\ |\ //select\ |\ //xhtml:select\ |\ //*[@onclick\ or\ @onmouseover\ or\ @onmousedown\ or\ @onmouseup\ or\ @oncommand\ or\ @role=\'link\'or\ @role=\'button\'\ or\ @role=\'checkbox\'\ or\ @role=\'combobox\'\ or\ @role=\'listbox\'\ or\ @role=\'listitem\'\ or\ @role=\'menuitem\'\ or\ @role=\'menuitemcheckbox\'\ or\ @role=\'menuitemradio\'\ or\ @role=\'option\'\ or\ @role=\'radio\'\ or\ @role=\'scrollbar\'\ or\ @role=\'slider\'\ or\ @role=\'spinbutton\'\ or\ @role=\'tab\'\ or\ @role=\'textbox\'\ or\ @role=\'treeitem\'\ or\ @tabindex]\ |\ //div[@id=\'ueditor_replace\']
posted @ 2015-05-29 17:34  决不永恒  阅读(98)  评论(0编辑  收藏  举报