Created
February 13, 2023 11:31
-
-
Save User4574/b4be376cbf674f56c621922fa13a36a7 to your computer and use it in GitHub Desktop.
Simple Vim Todo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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