aboutsummaryrefslogtreecommitdiff
path: root/todo.vim
diff options
context:
space:
mode:
authorNat Lasseter <nat.lasseter@york.ac.uk>2024-01-22 10:23:58 +0000
committerNat Lasseter <nat.lasseter@york.ac.uk>2024-01-22 10:23:58 +0000
commita79414bcf14d17c58e040a7b8524f7bd8f7e5e03 (patch)
tree4f2f232aca568711ecb35caa3444b54f4dfa4361 /todo.vim
Migrate from gists
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