Tuesday, July 27, 2010

Re: Swap files syncing

-------- Original-Nachricht --------
> Datum: Tue, 27 Jul 2010 12:22:37 +0300
> Von: Diana <diana.tiriplica@gmail.com>
> An: vim@vim.org
> Betreff: Swap files syncing

> Hello,
>
> My name is Diana and I am a GSoC student, working for KDE. My task is to
> implement Vim-like swap files support for Kate, a text editor for KDE.
>
> I have encountered a problem with syncing the swap files to the disk. I am
> currently syncing them every 15 seconds, only if the buffer has changed,
> but
> I would really like to know, if possible, how does Vim sync its swap
> files.
> Is it after a specific period of time, or maybe after a specific number of
> changes?
> [...]

From the Vim help file:

"The swap file is updated after typing 200 characters or when you have not
typed anything for four seconds. This only happens if the buffer was
changed, not when you only moved around."

If you have installed Vim you can read the details by typing ":h swap-file". Scroll down some pages till the "Updating the swapfile" heading.


HTH,
Dennis Benzinger

--
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

No comments: