Wednesday, February 24, 2010

Re: Open a new file if the file doesn't exist when using ctrl+W_ctrl+F?

On Feb 24, 11:13 am, Christian Brabandt <cbli...@256bit.org> wrote:
> Hi Peng!
>
> On Mi, 24 Feb 2010, Peng Yu wrote:
>
>
>
> > When the cursor is on <file>.xyz, I actually want to open <file>.abc.
> > Would you please show me how to do it?
>
> > More generally, give a 1-1 mapping form a suffix set (S1) to another
> > suffix set (S2), when the cursor is on any file name that has a suffix
> > in S1, I want to open the file with the suffix replaced by the
> > corresponding one in S2. Would you please show me how to do it?
>
> You might want to try a.vimhttp://www.vim.org/scripts/script.php?script_id=31

I see the following line on the above page. But I'm not sure what
'<Leader>' represents here. Would you please let me know?

<Leader>is switches to the alternate file of file under cursor (e.g.
on <foo.h> switches to foo.cpp)

> See also this blog post about a.vim:http://www.catonmat.net/blog/vim-plugins-a-vim/
>
> regards,
> Christian
> --
> Weil du die Augen offen hast, glaubst du, du siehst.
>                 -- Johann Wolfgang von Goethe (Egmont)

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment