ramccor / vcscommand

Automatically exported from code.google.com/p/vcscommand
0 stars 0 forks source link

VCSBlame buffer shouldn't be modifiable, and should :bwipeout when :quit-ing #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I'm using :VCSBlame, :quit-ing the buffer leaves it behind in the
buffer list, which seems unncessary to me.  I would understand the
necessity behind this if it would be referred to again on subsequent
:VCSBlame commands, but it's not, so it's pointless to keep them around. It
should wipe them when you quit.

Also, the buffers are modifiable, which, as annotations, they should not be.

Original issue reported on code.google.com by walke...@gmail.com on 18 Jan 2010 at 7:27

GoogleCodeExporter commented 9 years ago
I would much rather not force the buffer deletion behavior, especially when it 
conflicts with my usage.

Making the buffers read-only is reasonable, though it seems like more commands 
would 
benefit from that as well.  I'll think on it.

You can customize the behavior by adding something like the following to your 
.vimrc 
(the :au User command is all one line):

augroup VCSCommand
  au User VCSBufferCreated if b:VCSCommandCommand == 'annotate'|set bh=delete|set 
ro|endif
augroup END

Please note that the autocommand group name must be 'VCSCommand' for this to 
work.

Original comment by bob.hies...@gmail.com on 19 Jan 2010 at 4:16