From a79414bcf14d17c58e040a7b8524f7bd8f7e5e03 Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Mon, 22 Jan 2024 10:23:58 +0000 Subject: Migrate from gists --- todo.vim | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 todo.vim (limited to 'todo.vim') 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 [ [] +"Any file with a name ending in todo is a todo file. +au BufRead,BufNewFile *todo set ft=todo -- cgit v1.2.1