digraphs: ignore ansi commands in vim version output
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 22 Mar 2017 23:18:48 +0000 (00:18 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Thu, 23 Mar 2017 02:25:58 +0000 (03:25 +0100)
commit5afa7fd2694585c96a2ce5e9b6803507f8cfe1b4
tree2a6b40bc19cf876bfb5f55713a5d13b9bbc097bd
parentfb54e941b600cd7679d413c775218fe968204f79
digraphs: ignore ansi commands in vim version output

Recent versions of Vim v7.4 prepend the expected version number by various
escapes (probably terminal-dependent), causing an unreadable result of:

\e[?1049h\e[?1h\e=\e[1;63r\e[?25h\e[?25h\e[?25l\e[63;1H704

Assume nothing is put after the wanted number, so capture only that.
tools/mkdigraphs-vim