From 39d9b0baa1027b58c8e3cca820d1def96a09acfc Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 24 Jan 2021 23:22:05 +0000 Subject: [PATCH] aliases: drop files into vim via abspath --- aliases | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aliases b/aliases index 57dbfb8..f09cea4 100644 --- a/aliases +++ b/aliases @@ -24,7 +24,8 @@ if [[ -n "${VIM_TERMINAL}" ]]; then for f in "$@"; do # drop the file onto the running vim instance # see :h terminal-communication - echo -e "]51;[\"drop\", \"$f\"]" + local abspath=$(realpath $f) + echo -e "]51;[\"drop\", \"$abspath\"]" done } fi -- 2.48.1