markonm / traces.vim

Range, pattern and substitute preview for Vim
MIT License
742 stars 13 forks source link

Highlight when range is whole file. #3

Closed ErikLambrechts closed 7 years ago

ErikLambrechts commented 7 years ago

Is it possible to skip the range highlight is the hole file, using %?

Could this be done by adding a condition at https://github.com/xtal8/traces.vim/blob/cb67127f0735118bfdda22ce977a3b75077bc561/plugin/traces.vim#L135

markonm commented 7 years ago

Yes, it's possible. I added an option. Use let g:traces_whole_file_range = 0 to disable highlighting for % specifier.

ErikLambrechts commented 7 years ago

awesome