Open ben-cohen-xs opened 1 year ago
We could just add a test for !filereadable(expand("%"))
so startup isn't called if there's already something readable there.
Yes, this works for me and is neater than the change in my previous comment:
if !filereadable(expand("%:p")) && !isdirectory(expand("%:p"))
Any progress on this issue?
The
file-line
plugin breaks shell redirection: the command below should startvim
with a buffer containing its manpage, but insteadvim
shows an empty buffer with a name like "/proc/65432/fd/63".The plugin breaks it because it tries to re-read the buffer, which is not possible from a pipe. You can fix the example above like this, though it would be better to do a more general check for pipes (and other special files) because they can also only be read once.