sponsor Vim development Vim logo Vim Book Ad

TaskMotions : Motions to task and TODO markers.

 script karma  Rating 1/1, Downloaded by 1620  Comments, bugs, improvements  Vim wiki

created by
Ingo Karkat
 
script type
utility
 
description
DESCRIPTION
This plugin defines movement commands to go to a task or TODO marker embedded
in the file, like this:
    // TODO: Check the return code from the frobnicator.

RELATED WORKS
To get a list of all tasks and TODO markers in the current file or project,
you can use the companion GrepTasks.vim plugin (vimscript #4196).

USAGE
]t Go to [count] next start of a task or TODO marker.
[t Go to [count] previous start of a task or TODO marker.
 
install details
INSTALLATION
This script is packaged as a vimball. If you have the "gunzip" decompressor
in your PATH, simply edit the *.vmb.gz package in Vim; otherwise, decompress
the archive first, e.g. using WinZip. Inside Vim, install by sourcing the
vimball or via the :UseVimball command.
    vim TaskMotions*.vmb.gz
    :so %
To uninstall, use the :RmVimball command.

DEPENDENCIES
- Requires Vim 7.0 or higher.
- Requires the CountJump plugin (vimscript #3130), version 1.81 or higher.

CONFIGURATION
For a permanent configuration, put the following commands into your vimrc:

Tasks and TODO markers are defined by a regular expression. Change it via:
    let g:TaskMotions_Pattern = '\<TODO:'

To change the default mappings from ]t to ]x, use:
    let g:TaskMotions_Mapping = 'x'
To also change the [ / ] prefix to something else, follow the instructions for
CountJump-remap-motions.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
TaskMotions-1.01.vmb.gz 1.01 2012-10-16 7.0 Ingo Karkat Wrap around search when 'wrapscan' is set.
This requires CountJump version 1.81.
TaskMotions.vba.gz 1.00 2012-03-28 7.0 Ingo Karkat Initial upload.
ip used for rating: 35.173.181.0

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github