Wednesday, February 24, 2010

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

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.vim
http://www.vim.org/scripts/script.php?script_id=31

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: