Skip to content

Instantly share code, notes, and snippets.

@mt3
Forked from narbs/taskpaper .vimrc
Created April 8, 2012 11:04
Show Gist options
  • Save mt3/2336643 to your computer and use it in GitHub Desktop.
Save mt3/2336643 to your computer and use it in GitHub Desktop.
Adds "@done YY-MM-DD" to taskpaper notes edited in Vim
:fu! Taskpaper()
:return setline(line("."), getline(line(".")) . "@done(" . strftime("%Y-%m-%d") . ")")
:endf
:map <F11> <ESC>:call Taskpaper()<CR><ESC>
:imap <F11> <ESC>:call Taskpaper()<CR><ESC>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment