Created
September 18, 2014 06:12
-
-
Save tpope/0a37ad330f6f14868eca to your computer and use it in GitHub Desktop.
Cloud to Butt dot Vim
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
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