Skip to content

Instantly share code, notes, and snippets.

@frandsoh
Forked from huytd/todo.vim
Created January 27, 2021 10:10
Show Gist options
  • Save frandsoh/791ba8fc5165a4a78450494953fce499 to your computer and use it in GitHub Desktop.
Save frandsoh/791ba8fc5165a4a78450494953fce499 to your computer and use it in GitHub Desktop.

Revisions

  1. @huytd huytd created this gist Jun 14, 2020.
    19 changes: 19 additions & 0 deletions todo.vim
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    " 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