Skip to content

Instantly share code, notes, and snippets.

@dpo
Created September 18, 2019 16:23
Show Gist options
  • Save dpo/261ea94ba12094ec700babb0bda6f608 to your computer and use it in GitHub Desktop.
Save dpo/261ea94ba12094ec700babb0bda6f608 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Server name can be 100 chars max in length.
server=$(pwd)/$1
(( ${#server} > 100 )) && server=${server:0:100}
/usr/local/bin/vim --servername $server $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment