Strikeout text in vim?

Connor picture Connor · Dec 13, 2011 · Viewed 8.5k times · Source

Does Vim (with or without a plugin - I don't care) support strikethrough text at all? I've found myself keeping a running list of "TO-DO's" in it, and would like to be able to "cross off" my done items, via strikethrough text.

Thanks!

Answer

DRH picture DRH · Dec 13, 2011

If you're working with Unicode text, you may be able to achieve this using combining characters. The following article describes how this can be accomplished in gvim:

http://vim.wikia.com/wiki/Create_underlines,_overlines,_and_strikethroughs_using_combining_characters

You will need to make sure that the font gvim is using supports the appropriate characters, on Windows both Consolas and Courier New appeared to handle this correctly, but most of the others did not.