On Mon, Apr 30, 2007 at 08:51:55AM +0300, Yakov Lerner wrote:
> On 4/30/07, Fredrik Gustafsson <[EMAIL PROTECTED]> wrote:
> >Hi,
> >I'm looking for a way to always backup certain filetypes. The backup and
> >writebackup options only works if the file exist. I need a backup even
> >if I create a new file (i.e. the new file should be saved at two
> >locations).
> >
> >how do I do that?
> 
> Try using the autocommand:
>     au BufWrite *.abc,*.def :exe ":w! /my/other/dir/".expand("%:t")
> (untested).
> 
> Alternatively, you can try the 'savevers' plugin:
>          http://www.vim.org/scripts/script.php
> 
> Yakov
Thanks for a fast reply.
I used your autocommand and it works like a charm, doing exactly what I
whant. So you can now tagg it as tested.
/iveqy

-- 

Reply via email to