Skip to content

Instantly share code, notes, and snippets.

@tpope
Created September 18, 2014 06:12
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tpope/0a37ad330f6f14868eca to your computer and use it in GitHub Desktop.
Save tpope/0a37ad330f6f14868eca to your computer and use it in GitHub Desktop.
Cloud to Butt dot Vim
function! s:butt() abort
syn match cloud2butt "\<th\%(e cloud\>\)\@=" conceal cchar=m
syn match cloud2butt "\%(\<th\)\@<=e\%( cloud\>\)\@=" conceal cchar=y
syn match cloud2butt "\%(\<the \)\@<=c\%(loud\>\)\@=" conceal cchar=b
syn match cloud2butt "\%(\<the c\)\@<=l\%(oud\>\)\@=" conceal cchar=u
syn match cloud2butt "\%(\<the cl\)\@<=o\%(ud\>\)\@=" conceal cchar=t
syn match cloud2butt "\%(\<the clo\)\@<=ud\>" conceal cchar=t
endfunction
syntax on
augroup cloud2butt
autocmd!
autocmd Syntax * call s:butt()
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment