Skip to content

Instantly share code, notes, and snippets.

@lnksz
Created October 20, 2021 14:28
Show Gist options
  • Save lnksz/7434e531e96c8d3a361f4f7b59de1f5f to your computer and use it in GitHub Desktop.
Save lnksz/7434e531e96c8d3a361f4f7b59de1f5f to your computer and use it in GitHub Desktop.
mini vim syntax for todos
" This goes into ~/.vim/syntax/todo.vim
" Auto registration: $MYVIMRC << au BufRead,BufNewFile TODO set filetype=todo
if exists("b:current_syntax")
finish
endif
" # Header
syn match headLine '\v#.*$'
" > doing
syn match progLine '^\s*>.*$'
" ! attention
syn match attnLine '^\s*!.*$'
hi def link headLine Constant
hi def link progLine Comment
hi def link attnLine Statement
let b:current_syntax = "todo"
@lnksz
Copy link
Author

lnksz commented Oct 20, 2021

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment