Open Trainraider opened 2 years ago
vim main.zig
?pfetch
and did you try to remove it?No activity from the issuer to reproduce the issue with a minimal setup example (including vim config, shell config and used versions) since more than a year. Can this be closed?
I hit this same problem, and it ended up being because my VIM config was set up for interactive zsh shell (which I set up so I could have my zsh aliases).
set shell=zsh\ -i
Since I don't really use them any longer, I've removed it to fix it. however, it was really hard to figure out what was going on originally.
So, when I open a .zig file, something happens with my shell. I'm using starship on top of fish, and its configuring to run pfetch when it starts up. The output of pfetch somehow gets tangled up in the .zig file if zig.vim is running. So an error appears containing the pfetch output. If I ignore it and enter the file, everything looks okay. If I make no changes and I save and exit, the pfetch output is actually saved to the file. Here's my config.fish:
Error when opening a .zig file. Error contains pfetch output:
Main.zig: