I'd like 'edit' in zsh to start vim with v:servername = VIM.
Here's what I tried but to no avail, perhaps someone knows how to do better?!

In .zshenv there's a line

  export PATH="$HOME/bin:$PATH"

and in .zshrc there's

  export VISUAL=vim
  export EDITOR=$VISUAL

and in ~/bin there's an executable file 'vim' containing

  #!/bin/sh
  vim=$(which 2>/dev/null -a vim | tail -n 1)
  exec $vim --servername vim "$@"

Then $EDITOR and $echo $VISUAL show 'vim', but 'edit' and ':echo v:servername' 
is void (in contrast to 'vim' and ':echo v:servername' that shows 'VIM').

Best wishes

  Enno

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to