Ⅰ. 插件描述
Vim plugin for the taxi program https://github.com/sephii/taxi/Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'schtibe/taxi-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'schtibe/taxi-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'schtibe/taxi-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/schtibe/taxi.vim
Ⅳ. 文档说明
# taxi.vim
Vim/Neovim plugin for the taxi timesheeting tool
that makes your life easier

Features
- Syntax highlighting
- Alias completion when adding a new line
- Output of the balance every time the timesheet gets saved
- Aligning the timesheet entries
- Automatic async update of the aliases
Installation
Make sure you have vim in incompatible mode:
set nocompatibleSimply add this repository to your plugin manager, e.g. dein:
call dein#add('schtibe/taxi.vim')If you don't have one, put the content of the folders in your vim
configuration folder:
- ~/.config/nvim/syntax and ~/.config/nvim/ftplugin) in case of neovim
- ~/.vim/syntax and ~/.vim/ftplugin in case of vim
Usage of the alias completion
To complete the aliases use vim's omnicomplete functionality:
Start typing a word, then hit CTRL-x and CTRL-o consecutively to complete
- The completion is automatically spawned when adding a new line.
Special Thanks
I did not write the syntax file, so thanks to whoever wrote it and contributed
to it. To me it made sense to include this here to have a single point of
vim taxi functionality.
Stuff
I have a date format that is not parsed by the syntax file
Edit the syntax/taxi.vim file, then add a new line containing a regular
expression for the date format, like
syn match date "^\d\+/\d\+/\d\d"
and make a pull request if you think it is a commonly used date format that
should be covered by the syntax file.