vimdb是一个用来模拟单个数据库的Vim插件。
增加你精确查找vim的元素的速度以及对vim的一些了解:keys(keybidigs)、可选项、命令。vimdb是vim默认的items,一个在你的vimrc,一个在插件里。vimdb的插件只要检测到你在用pathoge-like安装,就会生效。例如,每个插件都有自己的目录,在~/.vim/budle/(见下面的目录结构变化)。在mac下测试的vim>=7.2。只有在ruby1.9.x下才会起作用。
安装
$gemistallvimdb基本查询不同的vimitems的基本用法:
#ListkeyswithCtrl$vimdbkeysC-+---------------+------+---------------------+------------------------------------------|key|mode|from|desc|+---------------+------+---------------------+-----------------------------------------||0C-d|i|default|deleteallidetithecurretlie|||i|default|cursorpastedoffil||||default|1sameas"G"|||i|default|cursortostartoffile||||default|1sameas"gg"||||default|1sameas"b"|...262rowsiset#Listoptiosthatcotaiword'widow'iayfield$vimdboptioswidow-a+----------------+--------+----------------------------------------------------+|ame|alias|desc|+----------------+--------+----------------------------------------------------+|autochdir|acd|chagedirectorytothefileithecurretwidow||bufhidde|bh|whattodowhebufferisologeriwidow||cedit||keyusedtoopethecommad-liewidow||cmdwiheight|cwh|heightofthecommad-liewidow||cscopequickfix|csqf|usequickfixwidowforcscoperesults||cursorbid|crb|movecursoriwidowasitmovesiotherwidows||diff||usediffmodeforthecurretwidow||equalalways|ea|widowsareautomaticallymadethesamesize||guiheadroom|ghr|GUI:pixelsroomforwidowdecoratios||helpheight|hh|miimumheightofaewhelpwidow||ico||letVimsetthetextofthewidowico|...30rowsiset#Searchforcommadsfrompathogeplugi$vimdbcommadspathoge-f=from+----------+-------+---------------------+-----------------------------------------------------+|ame|alias|from|desc|+----------+-------+---------------------+-----------------------------------------------------+|Helptags||pathoge.vimplugi|:callpathoge#helptags()||Ve||pathoge.vimplugi|:executes:fid(,'edit',,0)||Vedit||pathoge.vimplugi|:executes:fid(,'edit',,0)||Vope||pathoge.vimplugi|:executes:fid(,'edit',,1)||Vpedit||pathoge.vimplugi|:executes:fid(,'pedit',,1)||Vread||pathoge.vimplugi|:executes:fid(,'read',,1)||Vsplit||pathoge.vimplugi|:executes:fid(,'split',,1)||Vtabedit||pathoge.vimplugi|:executes:fid(,'tabedit',,1)||Vvsplit||pathoge.vimplugi|:executes:fid(,'vsplit',,1)|+----------+-------+---------------------+-----------------------------------------------------+9rowsiset#Ifoabouthowavimitemismade$vimdbifokeysCreatedusigidex.txtad:map#Foralistofallcommads$vimdb
评论