Need help with vim-taskwarrior?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

476 Stars 42 Forks Other 279 Commits 43 Opened issues


vim interface for taskwarrior

Services available


Need anything else?

Contributors list


a vim interface for taskwarrior

Taskwarrior is a command-line todo list manager. It helps you manage task lists with projects, tags, dates, dependencies, annotations, recurrences and apply complex (or simple) queries with attribute modifiers, boolean, regex filters and produce any number of reports, built-in or customizable reports, attributes and color themes. Task keeps data in JSON text files and it's always improving. Find out more at and read man task and man taskrc.

vim-taskwarrior is a vim plugin that extends taskwarrior with an interactive interface. It features a rich set of mappings and commands, is easy to customize, and makes adding, modifying, sorting, reporting and marking done, fast, easy and fun! Homepage:, patches welcome!


This plugin requires Taskwarrior 2.2.0 or higher, although >2.3.x is required for taskd sync functions, and recommended in general, and well worth the price; free :) see:

Vim version 7.x is required.

Suggested plugins

If you experience line-wrapping issues, add the following line to your .vimrc

let g:task_rc_override = 'rc.defaultwidth=0'

If you experience task truncation (vim-taskwarrior not showing enough tasks), add:

let g:task_rc_override = 'rc.defaultheight=0'


screenshot vim-taskwarrior animated gif


Either download zip file and extract in ~/.vim or use your favorite plugin manager.

  • Pathogen
    • git clone ~/.vim/bundle/vim-taskwarrior
  • Vundle
    1. Add
      Bundle 'farseer90718/vim-taskwarrior'
      to .vimrc
    2. Run
  • NeoBundle
    1. Add
      NeoBundle 'farseer90718/vim-taskwarrior'
      to .vimrc
    2. Run
  • vim-plug
    1. Add
      Plug 'blindFS/vim-taskwarrior'
      to .vimrc
    2. Run

Default map:

nnoremap  A       ... " add annotation
nnoremap  x       ... " delete annotation.
nnoremap  o       ... " open the annotation as a file.
nnoremap  a       ... " create new task.
nnoremap  d       ... " set the task in current line done.
nnoremap  D       ... " delete task
nnoremap     ... " delete field/annotation/task
nnoremap   ... " select/remove current task to selected list
nnoremap  m       ... " modify current field.
nnoremap  M       ... " modify current task.
nnoremap  f       ... " change filter
nnoremap  r       ... " change report type
nnoremap  c       ... " execute a command for selected tasks/current task
nnoremap  R       ... " refresh the report/clear selected list
nnoremap  q       ... " quit buffer.
nnoremap  X       ... " clear all completed task.
nnoremap  p       ... " duplicate selected tasks
nnoremap  u       ... " undo last change.
nnoremap  +       ... " start task
nnoremap  -       ... " stop task
nnoremap  S       ... " sync with taskd server.
nnoremap  s       ... " sort by this column primarily.(if already of the highest priority then switch the polarity)
nnoremap  <       ... " sort by this column increasingly.(if already increasingly then increase its priority)
nnoremap  >       ... " sort by this column decreasingly.(if already decreasingly then decrease its priority)
nnoremap  H       ... " cycle column format left
nnoremap  L       ... " cycle column format right
nnoremap  J       ... " next historical entry
nnoremap  K       ... " previous historical entry
nnoremap  B       ... " create a bookmark for current combination
nnoremap      ... " view the documents
nnoremap      ... " show task info.
nnoremap     ... " jump to the next column
nnoremap   ... " jump to the previous column
nnoremap   ... " jump to the next non-empty column
nnoremap    ... " jump to the previous non-empty column
vnoremap  d       ... " set done to all visual selected tasks
vnoremap  D       ... " delete all visual selected tasks
vnoremap      ... " show information about visual selected tasks
vnoremap   ... " add visual selected tasks to selected list


:TW [args]            " task [filter report arguments]
:TWUndo               " undo the previous modification
:TWEditTaskrc         " edit ~/.taskrc
:TWEditVitrc          " edit ~/.vitrc
:TWDeleteCompleted    " clear all completed tasks
:TWAdd                " add new tasks interactively
:TWAnnotate           " add an annotation
:TWComplete           " mark task done
:TWDelete             " deleta a task
:TWDeleteAnnotation   " delete an annotation
:TWModifyInteractive  " make changes to a task interactively (use with caution!)
:TWReportInfo         " run the info report
:TWReportSort [args]  " overide the sort method, reset to default if no arguments passed
:TWSync               " synchronise with taskd server
:TWToggleReadonly     " toggle readonly option
:TWToggleHLField      " toggle highlight field option
:TWHistory            " list history records using unite.vim
:TWHistoryClear       " clear history
:TWBookmark           " list bookmarks using unite.vim
:TWBookmarkClear      " clear bookmarks


" default task report type
let g:task_report_name     = 'next'
" custom reports have to be listed explicitly to make them available
let g:task_report_command  = []
" whether the field under the cursor is highlighted
let g:task_highlight_field = 1
" can not make change to task data when set to 1
let g:task_readonly        = 0
" vim built-in term for task undo in gvim
let g:task_gui_term        = 1
" allows user to override task configurations. Seperated by space. Defaults to ''
let g:task_rc_override     = 'rc.defaultwidth=999'
" default fields to ask when adding a new task
let g:task_default_prompt  = ['due', 'description']
" whether the info window is splited vertically
let g:task_info_vsplit     = 0
" info window size
let g:task_info_size       = 15
" info window position
let g:task_info_position   = 'belowright'
" directory to store log files defaults to taskwarrior data.location
let g:task_log_directory   = '~/.task'
" max number of historical entries
let g:task_log_max         = '20'
" forward arrow shown on statusline
let g:task_left_arrow      = ' <> '

Syntax highlightling:

Default scheme:

highlight default link taskwarrior_tablehead   Tabline
highlight default link taskwarrior_field       IncSearch
highlight default link taskwarrior_selected    Visual
highlight default link taskwarrior_id          VarId
highlight default link taskwarrior_project     String
highlight default link taskwarrior_Status      Include
highlight default link taskwarrior_priority    Class
highlight default link taskwarrior_due         Todo
highlight default link taskwarrior_end         Keyword
highlight default link taskwarrior_description Normal
highlight default link taskwarrior_entry       Special
highlight default link taskwarrior_depends     Todo
highlight default link taskwarrior_tags        Keyword
highlight default link taskwarrior_uuid        VarId
highlight default link taskwarrior_urgency     Todo

Feel free to change any of above by something like:

hi taskwarrior_xxx  guibg = xxx guifg = xxx ctermbg = xxx ctermfg = xxx

in your vimrc.




Bitdeli Badge

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.