Ⅰ. 插件描述
Super simple todo plugin for vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'neochrome/todo-vim-you-belong-with-me'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'neochrome/todo-vim-you-belong-with-me'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'neochrome/todo-vim-you-belong-with-me'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/neochrome/todo.vim
Ⅳ. 文档说明
Super simple TODO plugin for Vim
Installation
With vundle
- Reference the plugin in your
.vimrcwith:Bundle 'neochrome/todo.vim - Launch
vimand run:BundleInstall
As a git-submodule with Pathogen
- Install pathogen
In your vim-repository
- run
git submodule add http://github.com/neochrome/todo.vim.git bundle/todo - commit the changes
- run
Traditional install:
Drop the contents into your ~/.vim directory as is.
Configuration
Example .vimrc:
" todo.vim default highlight groups, feel free to override as wanted
hi link TodoTitle Title
hi link TodoTitleMark Normal
hi link TodoItem Special
hi link TodoItemAdditionalText Comment
hi link TodoItemCheckBox Identifier
hi link TodoItemDone Ignore
hi link TodoComment Comment " explicit comments must be enabled for this
" define like this to enable explicit comments
" comments then start with //
let g:TodoExplicitCommentsEnabled = 1Usage
Todo items are denoted by putting square brackets with an empty space first on a line (after any indentation).
Checking/unchecking is done by pressing ctrl+space in normal mode.
To enable checkbox toggling in a new buffer issue :set ft=todo.
Any file extension can be used as long as the last line of the file readsvim: ft=todo
For an example please see example.txt.
