I noticed that filetype
doesn't work reliably on Cygwin.
For example, consider the following piece of code:
if !has('win')
filetype * xdg-open
else
filetype * start, explorer
endif
While it works on Linux, it doesn't work on Cygwin.
What is strange, is that something like this
filetype *.zip zip -sf %c | less
works well on both Linux and Cygwin (given that Cygwin has zip installed).
Similarly,
fileviewer *.[ch],*.[ch]pp highlight -O xterm256 -s dusk --syntax c %c
does not seem to work on Cygwin, despite highlight
utility working fine in the Cygwin terminal.
Am I missing something? Are there any special configuration that has to be done in order for filetype/fileviewer to work on Cygwin consistently?