Update vim version check for enabling vimdebug
This commit is contained in:
parent
db124794ef
commit
81657d6f50
@ -7,7 +7,7 @@ alias build="build-dir --build"
|
|||||||
# Detect installed debugger and set the `debug` alias to debug a program with
|
# Detect installed debugger and set the `debug` alias to debug a program with
|
||||||
# command line arguments.
|
# command line arguments.
|
||||||
if [ `uname` = Linux ]; then
|
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
|
autoload -U regexp-replace
|
||||||
function vimdebug() {
|
function vimdebug() {
|
||||||
# For each item in $* replace * and \* and then replace \ with \\
|
# For each item in $* replace * and \* and then replace \ with \\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user