8
When I try to open a file (e.g. test/test_sequence.rb) using Vim or MacVim I get the following error:
"test/test_sequence.rb" 109L, 3697C
Vim(let):E484: Can't open file /var/folders/zO/zOCN9kiiGD4keWX3TWYEh++++TI/-Tmp-/vzTkbXD/0
This seems only restricted to files which have some kind of syntax highlighting. I can still edit the file but I have to use :w! to write the changes the first time. I'm using vim on Mac OS X. I tried a lot of googling for this error with no luck and this has become really frustrating. Could anyone offer a fix for this?
EDIT: I don't get this error when editing syntax highlighted LaTeX files but do with syntax highlighted Ruby files.
for me the syntax had to be
set shell=/bin/sh
– Ganesh Hegde – 2015-11-15T08:40:49.053But the whole thing seems filetype=ruby-specific to me. – ThomasH – 2015-11-26T15:58:58.907
3Just hit this myself when I changed my login shell to fishshell. Thanks for the tip :) – Yeraze – 2013-11-08T16:13:17.570
Same here, after setting default shell to fish it happened to me :) – imslavko – 2013-11-23T20:54:03.820
3Well, it had to add:
set shell=/bin/bash
. – paldepind – 2014-02-19T08:19:01.493