The downside is that some low-priority activities, such as writing the
swapfile to disk, are triggered more often, increasing CPU and disk load.
The default 'updatetime' is 4000 (4 seconds), which almost avoids triggering
it when you're busy typing, either in Insert mode to enter text, or in other
modes to do various editing tasks: it only happens when "you haven't hit a key
for four seconds". With your setting of 10 (1/100 second), you will in
practice trigger a disk write for every keypress, which might slow your system
in general, and Vim in particular, down to a crawl.
Best regards,
Tony.
--
"Dying is a very dull, dreary affair. And my advice to you is to have
nothing whatever to do with it."
-- W. Somerset Maugham
This can be solved by doing
set swapsync=''
which will let your OS choose when to sync (according to the help, this
may mean never on some systems, though, so I guess it should be used
with care).
Regards, Andreas
You should refer to the following in the taglist help file:
Q. When I set the 'updatetime' option to a low value (less than 1000) and if
I keep pressing a key with the taglist window open, the current buffer
contents are changed. Why is this?
A. The taglist plugin uses the CursorHold autocmd to highlight the current
tag. The CursorHold autocmd triggers after every 'updatetime' milliseconds.
If the 'updatetime' option is set to a low value, then the CursorHold
autocmd will be triggered frequently. As the taglist plugin changes
the focus to the taglist window to highlight the current tag, this could
interfere with the key movement resulting in changing the contents of
the current buffer. The workaround for this problem is to not set the
'updatetime' option to a low value.
- Yegappan
In case some CursorHoldI aucmd is running, the i_CTRL-X commands
become unusable, because the underlaying logic will be reset.
Meaning you'd have 10ms to trigger the completion you need after
pressing <C-X> in insertmode.
-ap
--
Ich hab geträumt, der Krieg wär vorbei.