-
-
Save shubhamoli/629a07bcb8ed00eb211ff3701704e695 to your computer and use it in GitHub Desktop.
A Todo list syntax in Vim, with an actual checkbox
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
" 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