Skip to content

Instantly share code, notes, and snippets.

@shubhamoli
Forked from huytd/todo.vim
Created June 18, 2020 09:58
Show Gist options
  • Save shubhamoli/629a07bcb8ed00eb211ff3701704e695 to your computer and use it in GitHub Desktop.
Save shubhamoli/629a07bcb8ed00eb211ff3701704e695 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