Skip to content

Instantly share code, notes, and snippets.

@User4574
Created February 13, 2023 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save User4574/b4be376cbf674f56c621922fa13a36a7 to your computer and use it in GitHub Desktop.
Save User4574/b4be376cbf674f56c621922fa13a36a7 to your computer and use it in GitHub Desktop.
Simple Vim Todo
"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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment