" File: todo.txt.vim " Description: Todo.txt filetype detection " Author: David Beniamine , Leandro Freitas " License: Vim license " Website: http://github.com/dbeniamine/todo.txt-vim " Version: 0.7.2 " vim: ts=4 sw=4 :help tw=78 cc=80 " Save context {{{1 let s:save_cpo = &cpo set cpo&vim " General options {{{1 " Some options lose their values when window changes. They will be set every " time this script is invocated, which is whenever a file of this type is " created or edited. setlocal textwidth=0 setlocal wrapmargin=0 " Mappings {{{1 " Sort todo by (first) context if !hasmapto("sc",'n') noremap sc :call todo#HierarchicalSort('@', '', 1) endif if !hasmapto("scp",'n') noremap scp :call todo#HierarchicalSort('@', '+', 1) endif " Sort todo by (first) project if !hasmapto("sp",'n') noremap sp :call todo#HierarchicalSort('+', '',1) endif if !hasmapto("spc",'n') noremap spc :call todo#HierarchicalSort('+', '@',1) endif " Sort tasks {{{2 if !hasmapto("s",'n') nnoremap