diff --git a/Todo.txt b/Todo.txt index 20f3ccd..d6717e1 100644 --- a/Todo.txt +++ b/Todo.txt @@ -1,13 +1,13 @@ -(A) 2011-06-06 Easier date input @ftplugin +(A) 2011-06-06 Check file syntax @syntax (B) 2011-05-31 Start documentation @doc -(C) 2011-05-30 Create README.markdown to be published in github @doc (C) 2011-06-01 Improve syntax file @syntax 2011-05-30 Contact main project for reference 2011-05-30 Map commands to add, rm, ls, pri, depri etc @ftplugin -2011-06-06 Check file syntax @syntax +X 2011-05-30 Create README.markdown to be published in github @doc X 2011-05-30 Implement colorized priorities @syntax X 2011-05-30 Implement filetype detection @ftdetect X 2011-05-30 Sort lines per priority @ftplugin X 2011-05-31 Highlight date, project and context of tasks with no priority @syntax X 2011-05-31 Stop breaking lines automatically @ftplugin +X 2011-06-06 Easier date input @ftplugin X 2011-06-06 Implement foldings @ftplugin diff --git a/ftplugin/todo.vim b/ftplugin/todo.vim index ad7c7e3..d98c462 100644 --- a/ftplugin/todo.vim +++ b/ftplugin/todo.vim @@ -3,26 +3,45 @@ " Author: Leandro Freitas " Licence: Vim licence " Website: http://github.com/freitass/todo.txt.vim -" Version: 0.3 +" Version: 0.4 +" 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 -if exists("g:loaded_todo") - finish +" Mappings {{{1 +" Sort tasks {{{2 +if !hasmapto("s",'n') + nnoremap