Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 347 Bytes

mvim-server.md

File metadata and controls

15 lines (13 loc) · 347 Bytes

Run only one instance of mvim ie client-server mode

Put the following into your .bashrc or .zshrc

function mvim {
  if [ -n "$1" ] ; then
    command mvim --remote-silent "$@"
  elif [ -n "$( command mvim --serverlist )" ] ; then
    command mvim --remote-send ":call foreground()<CR>:enew<CR>:<BS>"
  else
    command mvim
  fi
}