stefandtw / quickfix-reflector.vim

Change code right in the quickfix window
MIT License
347 stars 18 forks source link

option to disable autosave #11

Closed bimlas closed 9 years ago

bimlas commented 9 years ago

I like to check the modifications in the buffers before saving them, but the plugin automatically writes those. Is it possible to disable this behavior?

stefandtw commented 9 years ago

You can now configure

let g:qf_write_changes = 0

With the option, it seems the quickfix window is cleared after you write a modified buffer. I don't really know how to fix that. Give the option a try and let me know if it's helpful for you!

bimlas commented 9 years ago

It works fine for me. I think the clearing of quickfix is done by plugin or autocommand in your .vimrc. Try it out with the minimum settings:

Create a minimal .vimrc, for example _~/.vimrcmini with this content:

set nocompatible
filetype plugin indent on
syntax on
set runtimepath+=$HOME/.vim_mini

let g:qf_write_changes = 0

Copy the files from the plugin's dir to _~/.vimmini.

Run Vim with the newly created rc file (and disable .gvimrc):

gvim -u ~/.vimrc_mini -U NONE

The plugin should work fine for You too.

stefandtw commented 9 years ago

You're right. Works fine without my vimrc.