In gVim, I want to open a file that starts with an exclamationmark, say, for example, !this_is_my_file_whose_name_is_rather_long.txt
.
So, I type :e !this
followed by pressing the tabulator.
gVim expands the filename, but also prepends it with a backslash, so that the command line reads
:e \!this_is_my_file_whose_name_is_rather_long.txt
When I now press enter, thinking this will open my desired file, gVim will instead create a new buffer whose name also has the backslash.
This is of course not what I want. So after pressing the tabulator, I move the cursor to the backslash and delete it. Then, gVim will open the file that I want.
I assume that behaviour is ms-Windows related. Currently, I cannot go to a Unix machine to verify if I'd encounter this problem on Unix as well.
So, is there a way to turn this behaviour off?
\
is ilegal in Windows filenames.