MJN All Blog Cheatsheets Elasticsearch GCP JS LinuxBash Misc Notes Other ShortcutKeys / - Search

Home / LinuxBash / Script gvim - Runs windows gvim and fixes file paths


#!/bin/bash
help_text="
NAME
  gvim - Runs windows gvim and fixes files paths

USAGE
  gvim <filename(s)>

DESCRIPTION
  Runs windows gvim and fixes files paths.

AUTHOR
  mjnurse.dev - 2020
"
help_line="Runs windows gvim and fixes file paths"
web_desc_line="Runs windows gvim and fixes file paths"

files="$*"
fixed_files="$(echo $files | sed 's/\/c\//C:\//g')"
/c/Program\ Files\ \(x86\)/Vim/vim90/gvim.exe "$fixed_files" &

This page was generated by GitHub Pages. Page last modified: 25/04/22 09:03