mbbill / undotree

The undo history visualizer for VIM
http://www.vim.org/scripts/script.php?script_id=4177
BSD 3-Clause "New" or "Revised" License
3.97k stars 101 forks source link

Make all the tree-drawing characters customizable #136

Closed PhilRunninger closed 2 years ago

PhilRunninger commented 2 years ago

This PR, like #123, also partially addresses #103, but not in the way pictured in the issue. It also fixes the caveat mentioned in #123, where the tree's and node's formatting stopped working.

Although you can put any character you want in these shape variables, the only ones that make the most sense are these three Unicode box drawing characters, which may not be in your font:

Variable Default Unicode Box Character
g:undotree_TreeVertShape \| (pipe) (U+2502)
g:undotree_TreeSplitShape / (slash) (U+2571)
g:undotree_TreeReturnShape \ (backslash) (U+2572)