vimdb是一个用来模拟单个数据库的Vim插件。
增加你精确查找vim的元素的速度以及对vim的一些了解:keys(keybindings)、可选项、命令。vimdb是vim默认的items,一个在你的vimrc,一个在插件里。vimdb的插件只要检测到你在用pathogen-like安装,就会生效。例如,每个插件都有自己的目录,在~/.vim/bundle/(见下面的目录结构变化)。在mac下测试的vim>=7.2。只有在ruby1.9.x下才会起作用。
安装
$geminstallvimdb基本查询不同的vimitems的基本用法:
#ListkeyswithCtrl$vimdbkeysC-+---------------+------+---------------------+------------------------------------------|key|mode|from|desc|+---------------+------+---------------------+-----------------------------------------||0C-d|i|default|deleteallindentinthecurrentline|||i|default|cursorpastendoffil|||n|default|1sameas"G"|||i|default|cursortostartoffile|||n|default|1sameas"gg"|||n|default|1sameas"b"|...262rowsinset#Listoptionsthatcontainword'window'inanyfield$vimdboptionswindow-a+----------------+--------+----------------------------------------------------+|name|alias|desc|+----------------+--------+----------------------------------------------------+|autochdir|acd|changedirectorytothefileinthecurrentwindow||bufhidden|bh|whattodowhenbufferisnolongerinwindow||cedit||keyusedtoopenthecommand-linewindow||cmdwinheight|cwh|heightofthecommand-linewindow||cscopequickfix|csqf|usequickfixwindowforcscoperesults||cursorbind|crb|movecursorinwindowasitmovesinotherwindows||diff||usediffmodeforthecurrentwindow||equalalways|ea|windowsareautomaticallymadethesamesize||guiheadroom|ghr|GUI:pixelsroomforwindowdecorations||helpheight|hh|minimumheightofanewhelpwindow||icon||letVimsetthetextofthewindowicon|...30rowsinset#Searchforcommandsfrompathogenplugin$vimdbcommandspathogen-f=from+----------+-------+---------------------+-----------------------------------------------------+|name|alias|from|desc|+----------+-------+---------------------+-----------------------------------------------------+|Helptags||pathogen.vimplugin|:callpathogen#helptags()||Ve||pathogen.vimplugin|:executes:find(,'edit',,0)||Vedit||pathogen.vimplugin|:executes:find(,'edit',,0)||Vopen||pathogen.vimplugin|:executes:find(,'edit',,1)||Vpedit||pathogen.vimplugin|:executes:find(,'pedit',,1)||Vread||pathogen.vimplugin|:executes:find(,'read',,1)||Vsplit||pathogen.vimplugin|:executes:find(,'split',,1)||Vtabedit||pathogen.vimplugin|:executes:find(,'tabedit',,1)||Vvsplit||pathogen.vimplugin|:executes:find(,'vsplit',,1)|+----------+-------+---------------------+-----------------------------------------------------+9rowsinset#Infoabouthowavimitemismade$vimdbinfokeysCreatedusingindex.txtand:map#Foralistofallcommands$vimdb
评论