Last active
August 29, 2015 14:07
-
-
Save wonderbeyond/e0e27935d5d2c31f70ec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #使用vim打开文件时, 可以简单指定Vim服务器 | |
| VIM=gvim | |
| server=${s-GVIM} | |
| args="--servername ${server}" | |
| [[ "$#" != 0 && `$VIM --serverlist` == *${server^^}* ]] && \ | |
| args="$args --remote-tab" | |
| $VIM -f ${args} "$@" & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment