Skip to content

Instantly share code, notes, and snippets.

@imbilltucker
Forked from huytd/todo.vim
Created June 14, 2020 22:55
Show Gist options
  • Save imbilltucker/04606456153199ad83beeb6d4aa33ada to your computer and use it in GitHub Desktop.
Save imbilltucker/04606456153199ad83beeb6d4aa33ada to your computer and use it in GitHub Desktop.
A Todo list syntax in Vim, with an actual checkbox
" Vim syntax file
" Language: Todo
" Maintainer: Huy Tran
" Latest Revision: 14 June 2020
if exists("b:current_syntax")
finish
endif
" Custom conceal
syntax match todoCheckbox "\[\ \]" conceal cchar=
syntax match todoCheckbox "\[x\]" conceal cchar=
let b:current_syntax = "todo"
hi def link todoCheckbox Todo
hi Conceal guibg=NONE
setlocal cole=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment