Ⅰ. 插件描述
a Vim/Neovim plugin to highlight todos and fixmesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'sakshamgupta05/vim-todo-highlight'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'sakshamgupta05/vim-todo-highlight'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'sakshamgupta05/vim-todo-highlight'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/sakshamgupta05/vim-todo-highlight
Ⅳ. 文档说明
# vim-todo-highlight
a vim plugin to highlight todos and fixmes
Installation
vim-plug
Add the following configuration to your
.vimrc.Plug 'sakshamgupta05/vim-todo-highlight'- Install with
:PlugInstall.
Pathogen
- Install with the following command.
git clone https://github.com/sakshamgupta05/vim-todo-highlight ~/.vim/bundle/vim-todo-highlight
Vundle
Add the following configuration to your
.vimrc.Plugin 'sakshamgupta05/vim-todo-highlight'- Install with
:PluginInstall.
NeoBundle
Add the following configuration to your
.vimrc.NeoBundle 'sakshamgupta05/vim-todo-highlight'- Install with
:NeoBundleInstall.
Introduction
This plugin helps you to remember the TODO: and FIXME: you have written in your code by highlighting them inside vim.
Usage
Just type TODO: or FIXME: inside a comment and this plugin will highlight it for you.
Configuration
Default configuration
gui : HEX colors for terminals that support 24bit true colour cterm : 256 colors for terminals that support only 256 colour palette fg_color : text color bg_color : background color
{
'TODO': {
'gui_fg_color': '#ffffff',
'gui_bg_color': '#ffbd2a',
'cterm_fg_color': 'white',
'cterm_bg_color': '214'
},
'FIXME': {
'gui_fg_color': '#ffffff',
'gui_bg_color': '#f06292',
'cterm_fg_color': 'white',
'cterm_bg_color': '204'
}
}Disable default annotations
If you want to disable highlighting for the default annotations, configure as
let g:todo_highlight_disable_default = ['TODO', 'FIXME']Add custom annotations
To add your own custom annotations and/or customize colors for existing annotations, configure as (if you leave any attribute as blank, the default(TODO) configurations will be used)
let g:todo_highlight_config = {
\ 'REVIEW': {},
\ 'NOTE': {
\ 'gui_fg_color': '#ffffff',
\ 'gui_bg_color': '#ffbd2a',
\ 'cterm_fg_color': 'white',
\ 'cterm_bg_color': '214'
\ }
\ }