Ⅰ. 插件描述
A small plugin for .todo filesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'allisonlarson/todo-vim-he-is-going'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'allisonlarson/todo-vim-he-is-going'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'allisonlarson/todo-vim-he-is-going'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/allisonlarson/todo-vim
Ⅳ. 文档说明
# Todo-vim
Simple syntax highlighter and priority manager for a .todo file.
Easy install
clone this repository
cd todo-vim
cp -R * ~/.vim
or install via pathogen
Priorities
1-3 Rankings, where 1 is most important and 3 is least important
! Priority is unknown. Will be sorted to top of file
x Finished. Will be sorted to bottom of file
Sorting
Only supporting one command, that will auto sort your todos based on the priority level.<localleader>s will sort priorities.
3 Clean kitchen
1 Pay bill
1 Electric
Water
x Feed cat
2 Eat dinner
! Fix toaster
Don't electrocute self
to:
! Fix toaster
Don't electrocute self
1 Pay bill
1 Electric
Water
2 Eat dinner
3 Clean kitchen
x Feed cat
Major TODOs must be surrounded by newlines for sorting to work. Sorting subtasks is not supported, but will be syntax highlighted.
Finishing
<localleader>x will replace the current priority level with an x, marking it complete. This can be done from any of the sublines to update the major lined todo.
Help
To install help, run :helptags ~/.vim/doc after copying files. Then access help with :h todo.txt