Monday, August 26, 2019

Re: A script which let vim auto-save files.

Hongyi Zhao <hongyi.zhao@gmail.com> 于2019年8月26日周一 下午6:03写道:
>
> Christian Brabandt <cblists@256bit.org> 于2019年8月26日周一 下午4:50写道:
> >
> >
> > On Mo, 26 Aug 2019, Hongyi Zhao wrote:
> >
> > > Hi,
> > >
> > > In order to let vim auto-save files, I tried the follwing plugin:
> > >
> > > https://github.com/907th/vim-auto-save
> >
> > as far as I remember that script depends on Vims autocommands to do it's
> > work. Nowadays with a modern vim you can instead make use of timers,
> > that work a bit more reliable. My autosave plugin uses this:
> > https://github.com/chrisbra/vim-autosave

I still cannot understand, even with one line as follows will do the trick:

autocmd TextChanged,TextChangedI * silent! wall

Why you and others still try to write plugin for this type of job?

Regards

>
> Thanks for your reply. I try your autosave plugin, but it seems id
> doesn't work for my case.
>
> I want to the save into the original opened buffer/file instead of
> into a backup file.
>
> Regards
>
> >
> >
> > Best,
> > Christian
> > --
> > Stilblüten aus Schreiben von Versicherungsnehmern:
> > Zunächst sagte ich der Polizei, ich sei nicht verletzt, aber als ich
> > den Hut abnahm, bemerkte ich den Schädelbruch.
> >
> > --
> > --
> > You received this message from the "vim_use" 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_use" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20190826085019.GN10736%40256bit.org.
>
>
>
> --
> Hongsheng Zhao <hongyi.zhao@gmail.com>
> Institute of Semiconductors, Chinese Academy of Sciences
> GnuPG DSA: 0xD108493



--
Hongsheng Zhao <hongyi.zhao@gmail.com>
Institute of Semiconductors, Chinese Academy of Sciences
GnuPG DSA: 0xD108493

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAGP6POLHPJo5spod3LBLkWKVb8jBLVKJPPzO3DES%3DDQYqP-P8w%40mail.gmail.com.

No comments:

Post a Comment