From: Samir Benmendil Date: Sun, 24 Jan 2021 23:22:05 +0000 (+0000) Subject: aliases: drop files into vim via abspath X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/39d9b0baa1027b58c8e3cca820d1def96a09acfc?ds=inline aliases: drop files into vim via abspath --- 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