Ⅰ. 插件描述
Vim plugin to simulate a simple database TableⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/vimdb-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/vimdb-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/vimdb-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/vimdb.vim
Ⅳ. 文档说明
Unfortunatly nobody likes this script; it would be kind of you to let me know why.
This plugin is useful to store information in a database-like design.
Whilst opening a .vimdb file, autocommands will be applied and open two windows. The left window gives a view on the table, the right window shows the record, the cursor is currently over (of course, after heaving created a new .vimdb file, there will only be two empty windows shown). The first line of the table will become the header, which shows the names of the columns. For full instructions see readme, to have an idea, how a database will look like: look at example database shipped with the package.
Note:
1.) With the new improved (since version 0.5) TAB key mapping, editing the database will become a pleasure ;).
2.) Cleared many bugs to make script a bit more compatible to Vim movement/delete commands (cw, dw, D, C),
which might be useful editing records (But still the mighty TAB key dwarfs them all;).
3.) Im through with bug removal, but there is still one, you should know: The table needs at least two columns to let the TAB key
work
Be Warned:
The development of the script has advanced, but i would still not recommend to store important data to a *.vimdb file.
Questions/Suggestions/Bug reports?
Just compose a mail! (I dont promise to do anything but to be pleased to receive your mail. But just have a try)
benjaminschnitzler_at_gmail_dot_com