Friday, October 26, 2012

BufWritePre and forced write

Hello,

I've got a BufWritePre autocmd, and I would like to check to see if a
write was being forced ("w!"), so that I may override certain behaviour
in that case.

Is there any way to check whether or not the bufwrite is being forced?

Thanks,
Marc

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