todo.vim


Ⅰ. 插件描述

Super simple todo plugin for vim

Ⅱ. 基本信息

创建日期:  2011-08-02
使用用户:  7
Github星:  8
插件作者:  Johan Stenqvist

Ⅲ. 安装方法

使用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

Ⅳ. 文档说明

endorse

Super simple TODO plugin for Vim

Installation

With vundle

  1. Reference the plugin in your .vimrc with: Bundle 'neochrome/todo.vim
  2. Launch vim and run :BundleInstall

As a git-submodule with Pathogen

  1. Install pathogen
  2. In your vim-repository

    1. run git submodule add http://github.com/neochrome/todo.vim.git bundle/todo
    2. commit the changes

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 = 1

Usage

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 reads
vim: ft=todo

For an example please see example.txt.

添加新评论