digraphs: run vim parser with safety options
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 22 Mar 2017 23:25:35 +0000 (00:25 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Thu, 23 Mar 2017 02:25:58 +0000 (03:25 +0100)
Preclude customisations and unneeded requirements to avoid possible
side-effects.  Options copied from Text::VimColor interface.

tools/mkdigraphs-vim

index c1dcbe44e45ae09620f9a11262d587a700a33c6c..2137889aaceebe8fbd50ec411cac4e42ffbbce4d 100755 (executable)
@@ -9,7 +9,9 @@ then
        exit 64 # EX_USAGE
 fi
 
-vim -e -c'echo version' -cdigraphs -cq | perl -CSD -nE '
+VIM='vim -RXZ -i NONE -u NONE -N -n'
+
+$VIM -e -c'echo version' -cdigraphs -cq | perl -CSD -nE '
        if ($. == 1) { # head
                say "# digraphs list from vim version ", m/(\d+)\s*\z/;
                say "+{";