ludovicchabant / vim-gutentags

A Vim plugin that manages your tag files
https://bolt80.com/gutentags/
MIT License
2.3k stars 175 forks source link

Use with vim-eunuch's SudoWrite causes error #302

Open alerque opened 3 years ago

alerque commented 3 years ago

Somewhat expected, when writing to files with sudo permissions regenerating tags throws an error. This wouldn't be so bad except the ctags error occludes any previous errors so it's difficult to confirm the write happened.

It would be nice if this plugin detected when either the tags file won't be writable or the current buffer isn't writable (or has hooks setup as in vim-eunuch) and didn't even try.