Windows – How to edit file on UNC path with vim from powershell

powershellvimwindows

I got the following error trying to edit a file on a UNC path using vim. How do I resolve this?

> new-psdrive x filesystem \\192.168.1.1\c$> cd x:\ > vim .\test.txt '\\192.168.1.1\c$'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.


   vim.exe .\test.text