Simple syntax plugin both for vim
and neovim
to give a bit of life to your TODO
without any bloat.
- Simple
- Easy to use
- A bit of eye-candy with color-coded types of tasks
- A sense of fulfillment when you complete a task
- I'm using it daily for 5 years with no issues
- Fits physical blackboards and paper notes perfectly
- Addicting
Whitespaces don't matter and indentation can be useful to create a tree structure:
Use your favorite plugin manager (recommended, both for neovim and vim)
Plug 'EtiamNullam/vim-todotxt-syntax'
Manual (vim)
Move todotxt.vim
to ~/vimfiles/syntax
(Windows) or ~/.vim/syntax
(Unix)
Make sure that syntax
is enabled in your vimrc
file by syntax enable
After you've installed the plugin installed every file that ends with .todotxt
will have this syntax highlighting enabled.
Start a line with one of these characters to highlight it with various colors:
Character | Highlight Group | Suggested meaning |
---|---|---|
- |
Type | To do |
+ |
String | Done |
! |
Special | Important |
? |
Function | Question, optional or needs more information |
/ |
Comment | Cancelled |
You can use :set filetype=todotxt
to force it for current buffer, might be useful for scratch buffers.
- More info about syntax files
- All examples are shown using white-chocolate theme.
vim
will understand paths to other files which can be followed even in plain text usinggf