aboutsummaryrefslogtreecommitdiff
path: root/todo.vim
diff options
context:
space:
mode:
Diffstat (limited to 'todo.vim')
-rw-r--r--todo.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/todo.vim b/todo.vim
new file mode 100644
index 0000000..96dc38f
--- /dev/null
+++ b/todo.vim
@@ -0,0 +1,6 @@
+"In normal mode, [ positions the cursor in the checkbox and waits for a character with which to replace the checkmark.
+au FileType todo nnoremap [ 0t]r
+"In insert mode, [ actually inserts a checkbox and a space.
+au FileType todo inoremap [ [<Space>]<Space>
+"Any file with a name ending in todo is a todo file.
+au BufRead,BufNewFile *todo set ft=todo