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

Why this plugin is creating a temparay directory under /tmp? #35

Closed weynhamz closed 11 years ago

weynhamz commented 11 years ago

I noticed that this plugin creates a temparay directory under /tmp each time vim starts, but I can't locate the exact code which does this, so why it is necessary to create such directory and where is the code that does this? Can it be configured to other place, e.g. I personally setup /tmp/vim-$(id -u) for vim temporay files, it would be great if it could be used.

tomtom commented 11 years ago

I noticed that this plugin creates a temparay directory under /tmp each time vim starts, but I can't locate the exact code which does this, so why it is necessary to create such directory and where is the code that does this?

What's the contents of that file? Could it be from using vcsdiff (signs for changes in code under a VCS)? If so, it's done by vim while redirecting the output of a system command.

weynhamz commented 11 years ago

The directory seems always empty, at least every time I look at it. It's is just a usual mktemp directory, creates when vim starts with this plugin enable and gets deleted when vim quits. So, I have no clue where it comes from, but it does not created if this plugin was disabled.

tomtom commented 11 years ago

As I said before. The directory is created by vim, seemingly when running an external command. If you don't like that directory, disable vcsdiff signs either by setting g:quickfixsigns#vcsdiff#loaded = 1 or by removing "vcsdiff" from g:quickfixsigns_classes.