tomtom / quickfixsigns_vim

Mark quickfix & location list items with signs
http://www.vim.org/scripts/script.php?script_id=2584
GNU General Public License v3.0
131 stars 13 forks source link

How to disable signs in a plugin window? #23

Closed weynhamz closed 12 years ago

weynhamz commented 12 years ago

I have both Nerdtree and Tagbar plugins intalled, the strange thing is that the sign column is showed in the Nerdtree plugin window but not in Tagbar plugin window. How can I disable the sign column in the Nerdtree plugin window?

tomtom commented 12 years ago

You can either set g:quickfixsigns_blacklist_buffer or set the buffer-local variable b:noquickfixsigns in the Nerdtree window. I don't use Nerdtree so I cannot tell which solution is the better one.

weynhamz commented 12 years ago

Thank you.

The name of tagbar window is 'Tagbar' which match the default value of `g:quickfixsigns_blacklist_buffer', that's why the signs column is not shown in the tagbar window by defalut.

I have changed it to \(^__.*__$\)\|\(^NERD_tree_.*$\)\|\(^-MiniBufExplorer-$\)', now it looks good.

I used to set the following to prevent the signs be shown in nerdtree window, but this is just a work arround not the right way, the signs column got disabled after a very short of displaying.

autocmd BufEnter NERD_tree_* let g:quickfixsigns#marks#buffer = []
autocmd CursorHold NERD_tree_* let g:quickfixsigns#marks#buffer = []

The b:noquickfixsigns has the same effect with g:quickfixsigns_blacklist_buffer, they are both triggered at the same stage of the process, the difference is only for the configuration. g:quickfixsigns_backlist_buffer is a central blacklist rule, but for b:noquickfixsings, a configuration like autocmd BufEnter NERD_tree_* let b:noquickfixsigns=1 has to be set for every window we want the sings column not to be displayed.