From 81657d6f5048dc7a86622abd4deda603316fabec Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Thu, 6 Feb 2020 13:36:05 +0000 Subject: [PATCH] Update vim version check for enabling vimdebug --- build/build.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/build.plugin.zsh b/build/build.plugin.zsh index d45d3a2..b2fbffa 100644 --- a/build/build.plugin.zsh +++ b/build/build.plugin.zsh @@ -7,7 +7,7 @@ alias build="build-dir --build" # Detect installed debugger and set the `debug` alias to debug a program with # command line arguments. if [ `uname` = Linux ]; then - if [[ "`vim --version`" =~ "^VIM - Vi IMproved 8\.1.*$" ]]; then + if [[ "`vim --version|head -1|cut -c 19-21`" =~ "^8\.[123456789]$" ]]; then autoload -U regexp-replace function vimdebug() { # For each item in $* replace * and \* and then replace \ with \\