taskwarrior.vim


Ⅰ. 插件描述

task warrior vim syntax files

Ⅱ. 基本信息

创建日期:  2011-01-28
使用用户:  2
Github星:  6
插件作者:  Federico Ramallo

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'framallo/taskwarrior-vim-everything-has-changed'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'framallo/taskwarrior-vim-everything-has-changed'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'framallo/taskwarrior-vim-everything-has-changed'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/framallo/taskwarrior.vim

Ⅳ. 文档说明

Configure VIM for Syntax Highlighting of Taskwarrior Data

The task data files (pending.data, completed.data and undo.data),
configuration file (.taskrc) as well as edits made via commands like "task 1
edit" can be color-highlighted if you happen to use VIM as your preferred text

  1. Eventually this will happen automatically in newer versions of VIM,
  2. for now you have to do a little bit of file shuffling.
                            Prerequisites

For this to work, you need to first have syntax highlighting enabled when you
use VIM. This happens to be the default for most VIM installations, but it is
usually quite simple if that doesn't happen to be so in your case. Rather
than repeat the excellent VIM documentation here, please see the appropriate
VIM documentation itself. Generally this can be made seen by starting
vim/gvim and issuing the following command:

:help syntax

You may prefer instead to read the help online at:

http://vimdoc.sourceforge.net/htmldoc/syntax.html#syntax
          Configuring VIM to Understand Taskwarrior Data

Once you have VIM's syntax highlighting enabled and working with other file
types properly, configuring it for use with taskwarrior is simple. You simply
need to copy some files that came with taskwarrior into your home directory so
that you have:

~/.vim/ftdetect/task.vim
~/.vim/syntax/taskdata.vim
~/.vim/syntax/taskedit.vim
~/.vim/syntax/taskrc.vim

The source of these files varies depending on how you installed task. If you
installed task via a regular package (rpm or deb) you can find these files in
/usr/share/doc/task-VERSION/scripts/vim/. If you built task yourself from the
tarball (using the default configure options), these will be in
/usr/local/share/doc/task-VERSION/scripts/vim/ instead. So you should be able
to do one of the following:

cp -av /usr/share/doc/task-VERSION/scripts/vim/* ~/.vim/

or

cp -av /usr/local/share/doc/task-VERSION/scripts/vim/* ~/.vim/

You should then be ready to go.

All four above mentioned files are

Copyright 2009-2010 John Florian

and are available under the GNU Public License version 2 or later.
For the full text of this license, see COPYING.

添加新评论