I have an alias setup to open a file in the same window, like so:

    alias edit="open -a MacVim.app $1"
    # edit ./myfile.txt

But this does not work for the goto line/function. I get the following error:

The file /Users/me/+123 does not exist.

To get around this I am using a separate alias, like this:

    alias edit@="mvim $1 $2"
    # edit@ +123 ./myfile.txt

But I would like to use the `edit` alias to both. Is there a way I can do this 
using the `open -a MacVim.app` syntax?

-- 
-- 
You received this message from the "vim_mac" 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_mac" 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