On 9 April 2010 02:25, dsclementsen wrote:
> I have a problem using mac vim using ctags' -t flag with vim's --
> remote-tab flag.
>
> Now I have a function called 'shorten' in one of my files
> (par_page.php). The following works correctly:
> "mvim -t shorten" does open 'par_page.php' and the cursor is
> moved to the 'shorten' method signature
> "mvim --remote-tab index.php" does open 'index.php' in a new tab
> in an existing vim window
>
> But..
> "mvim --remote-tab -t shorten" opens a file called "-t" and one
> called "shorten" in new tabs.
> That's not the behavior I was expecting, am I doing it wrong or
> shouldn't this open my 'par_page.php' file in a new tab and move the
> cursor to the 'shorten' function?
>
> Don't know if this is a code bug or another one of those 'the bug
> exists between my screen and my chair?'
You just have to pass any parameters (i.e. "-t") _before_ the --remote
flag since everything after it is treated as the file list. From ":h
remote":
--remote [+{cmd}] {file} ... *--remote*
Open the file list in a remote Vim. When
there is no Vim server, execute locally.
There is one optional init command: +{cmd}.
This must be an Ex command that can be
followed by "|".
The rest of the command line is taken as the
file list. Thus any non-file arguments must
come before this.
You cannot edit stdin this way |--|.
The remote Vim is raised. If you don't want
this use >
vim --remote-send "<C-\><C-N>:n filename<CR>"
Björn
--
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
To unsubscribe, reply using "remove me" as the subject.