dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

vimsend (223B)


      1 #!/bin/sh
      2 # Send a file to Vim
      3 case "$1" in
      4   /*) fpath="$1";;
      5   *) fpath="$(pwd)/$1";;
      6 esac
      7 
      8 # Have to use $fpath directly here otherwise opens two windows
      9 # shellcheck disable=SC2059
     10 printf "]51;[\"drop\", \"$fpath\"]"