The Puma
The Puma

Reputation: 1390

Why does my Vim always save a file, no matter what?

Whenever I quit a file, even using :q!, Vim will save it. What could possibly be causing this?

In init:
ack.vim
keybindings.vim
nerdcommenter.vim
nerdtree.vim
options.vim
supertab.vim
syntastic.vim
tabline.vim
vcomments.vim
vim-fugitive.vim
vim-powerline.vim

in plugin:
EasyMotion.vim
mru.vim

Upvotes: 0

Views: 96

Answers (1)

Ingo Karkat
Ingo Karkat

Reputation: 172510

Often, a binary search where you disable half of your plugins, then only one half of that (when the problem is still there), or the other half (when the problem vanished) lets you get to the problematic script quickly. The same can be done with the configuration in your ~/.vimrc (by commenting out blocks).

Also, you can capture a full log of a Vim session with vim -V20vimlog. After quitting Vim, examine the vimlog log file for appropriate commands. In your case, that would be :write commands.

Upvotes: 5

Related Questions