I'm using Vim (GVim, to be precise) under Windows 8 and I want to compile with the usual
:!g++ %, but the name of the directory where my file is stored has accents, and Vim seems to have problems with them.
Here is the result of invoking
:!g++ "%" (Vim does not seem to add the quotes around the current file path nor escapes spaces):
For the sake of clarity, the full path to the file shown is
E:\Programación\Problemas algoritmos\(ns) ACM-ICPC Live Archive 2088 - Entropy.cpp
When I use Vim (instead of GVim), the accents seem to be handled properly, but it still adds a
), so the invoked command looks like
g++ "E:\Programación\Problemas algoritmos\\(ns\) ACM-ICPC Live Archive 2088 - Entropy.cpp"
Running these commands
:set encoding? :set termencoding?
In Vim shows
But in GVim shows
How could I solve it?
I have already tried with the following lines in _vimrc:
set encoding=latin1 set termencoding=cp850
Looks like the real problem is not with accents but with parentheses. For example, it works with
áéíóú.cpp but not with