# --bind "ctrl-e:execute${TMUX:+-silent}(open_in_vim {+2})"
open_in_vim() {
  files="$*"
  for f in ${files}; do
    absfiles="${files}\"${repo:-~/projects}/${f}\""
  done
  if [ -n "${TMUX}" ]; then
    # start in tmux popup
    tmux display-popup -E -d "${repo:-~/projects}" -h 75% -w 75% -b heavy vim "${absfiles}"
  else
    vim "${absfiles}"
  fi
}
