diff --git a/.todo.actions.d/vi b/.todo.actions.d/vi new file mode 100755 index 0000000..3f89804 --- /dev/null +++ b/.todo.actions.d/vi @@ -0,0 +1,6 @@ +#!/bin/bash +if [[ $1 == "usage" ]]; then + echo "todo.sh vi [extra args]: opens todo.txt file in vi, with optional commands provided " +else + vi "${@:2}" $TODO_FILE +fi diff --git a/README.markdown b/README.markdown index 39c48f4..bd5007b 100644 --- a/README.markdown +++ b/README.markdown @@ -13,6 +13,8 @@ If your Vim installation does **not** have Python support, this plugin **will wo git clone git://github.com/freitass/todo.txt-vim.git cd todo.txt-vim cp -R * ~/.vim + #optional: add a vi plugin to todo.sh + ln -s ~/.vim/.todo.actions.d/vi ~/.todo.actions.d/vi This plugin gives syntax highlighting to [todo.txt](http://todotxt.com/) files. It also defines a few mappings, to help with editing these files: