-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11-Sep-2016 03:27 +0200, Sholto Douglas wrote:

> I have used VIM for many years and am an aficionado. However I
> find it has a VERY annoying habit of occasionally truncating the
> start of a file when I save it. Usually I can get back the missing
> bits by going to the backup file e.g. file.cpp~ But today I find
> that even the backup file has been trashed.  I have lost a heap of
> work, which will set me back hours on a tight timetable. Here is
> the start of the trashed file:
> 
> g`"& kDisableSkipFolders) == kDisableSkipFolders);
> 
> CloseCurrentKey(); return m_vecPath.size() > 0; }
> 
> As you can see, it doesn't look like the start of a C++ source 
> file. Has anyone else had this?  google didn't return any 
> references to it, but I can't imagine I am the only one to suffer 
> this given it has happened many times over the years. Is there a 
> fix for this blight on an otherwise excellent tool?

It looks like a plugin applied commands in the wrong mode, and so some
text got lost, and g`" (a non-jumplist jump to the position when last
exiting the buffer) inserted instead. Which plugins do you use?

Try searching for g`" (or maybe g`) in your ~/.vim directory (and
maybe your ~/.vimrc as well). That might give you the culprit, or at
least narrow it down to a few plugins. You can then try disabling the
plugin (set g:loaded_<pluginname> in your .vimrc usually works).
Plugin bugs should be reported to its author, naturally.

I don't think this is an issue with Vim itself.

- -- regards, ingo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQEcBAEBAgAGBQJX1aQXAAoJEA7ziXlAzQ/vpz0H/jCnFLoC37tUNGGaQ/L4PZKH
G8ZJ3zi0S++W1jNrpWBY7Fmx4A61o8Z2vGqF83cI5ebeB6j5R++w4X9JhG1Z/7HQ
tFGO+zZjEY1HLIUr6Bz4enTLobZBjodY3ZEiPdUE9uvZYCbRF3XGIOXYT+56Zze+
IRGCmyKsiEjHFAc7v4RHee732HiGRULtUwY9aHPY3ozKk+qI0z6rjD2KAsr4cSKZ
fRc2bd+3gqjIAUusWwlVLzjO9ek0XokP1sKPgBmcHfm7a+p6xA3Ev18utuGhiUa6
DZzVeR6dzKM6IJmyoz4WhwaHXvFJYzJzzlccF0BNDvMMAfMfGsSB4lXAavfqNZc=
=BlRQ
-----END PGP SIGNATURE-----

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui