You are not logged in.
Without updating in between, vim has started to behave weirdly:
It freezes when opening certain files or files in certain directories. Not responding to any command, but showing the typed letters in the command 'area', overwriting status text.
It will do so until I 'do' something with the file, such as `mv file.tex file.tex` (even though one would think that does very little, if anything, to the file.
I removed existing backup files and e.g. cat works fine on 'frozen files'; suggesting they are not corrupt.
Anyone any idea?
Last edited by A.J.Rouvoet (2013-06-15 11:44:20)
Offline
Oh, the culprit is another vim server somewhere in the background holding on to the same file. It seems that not all file buffers are released when quiting a server with multiple buffers.
Offline
Hmm, even after I killed all vim instances it still has the same behaviour. Anyone?
Offline
If you hold the last post then it's considered good form to edit that, rather than crassly bump your thread up the board.
Offline
Could the freezes be occurring when the swapfile is syncing? Running iotop might tell you. Or you can simply test by running without a swapfile – add 'set noswapfile' to your '.vimrc'. You do risk losing some data (the last unsaved changes) if vim crashes while running without a swapfile.
A less drastic change is to switch the swapfile syncing to disk with fsync to use sync instead, with set swapsync=sync. Or set the swapfile to a different directory from the file being edited, say '/tmp', with set dir=/tmp.
You also could try turning autoread off, set noautoread.
:help swapfile
:h swap-file
:h swapsync
:h dir
:h autoreadOffline
Could the freezes be occurring when the swapfile is syncing? Running iotop might tell you. Or you can simply test by running without a swapfile – add 'set noswapfile' to your '.vimrc'. You do risk losing some data (the last unsaved changes) if vim crashes while running without a swapfile.
A less drastic change is to switch the swapfile syncing to disk with fsync to use sync instead, with set swapsync=sync. Or set the swapfile to a different directory from the file being edited, say '/tmp', with set dir=/tmp.
You also could try turning autoread off, set noautoread.
:help swapfile :h swap-file :h swapsync :h dir :h autoread
I already had set noswapfile in my .vimrc
Offline