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.
Extended the work done in #131 by adding the g:undotree_TreeReturnShape variable.
Fixed a bug that was not respecting g:undotree_TreeVertShape by using '|' always.
Ensured the syntax file uses the shape variable instead of the hard-coded ' \zs\*\ze ', '\zs\*\ze.*>\d\+<', and [|/\\].
Added to, fixed typos in, renumbered, and realigned text in the documentation file.
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:
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.
g:undotree_TreeReturnShape
variable.g:undotree_TreeVertShape
by using'|'
always.' \zs\*\ze '
,'\zs\*\ze.*>\d\+<'
, and[|/\\]
.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:
g:undotree_TreeVertShape
\|
(pipe)│
(U+2502)g:undotree_TreeSplitShape
/
(slash)╱
(U+2571)g:undotree_TreeReturnShape
\
(backslash)╲
(U+2572)