You are not logged in.
I observe strange behaviour in Vim: the command
:syntax on
causes that on every executing the ":write" command, the cursor line is get centered on the screen just like with ":zz" command. The command
:syntax off
executed after that, doesn't remove the glitch. What can cause such behaviour? Maybe some "FileWrite*" autocommand? How one can trace what additional mappings and hooks are performed on executing a command?
Last edited by nbd (2015-10-15 01:35:49)
bing different
Offline
Please paste your .vimrc
Moving to NC...
Offline
Well, after narrowing down the problem, the cause really turned out to be an autocommand in .vim/ftdetect/filetype.vim: "au bufwritepre,filewritepre" which writes the "last edited" date to a file on write.
bing different
Offline