Skip to content

Instantly share code, notes, and snippets.

@juque
Created December 2, 2011 10:04
Show Gist options
  • Select an option

  • Save juque/1422627 to your computer and use it in GitHub Desktop.

Select an option

Save juque/1422627 to your computer and use it in GitHub Desktop.
#!/bin/sh
VIMSERVER=`mvim --serverlist`
if [ $VIMSERVER ]
then
mvim --servername VIM --remote-send '<Esc>:tabnew<CR>'
else
mvim
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment