Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In vim vi or nvim :r !date gives me shell returned 2


Did you set your login shell to Elvish? Vim unfortunately relies on your shell being a POSIX shell, but you can fix that with "set shell=/bin/sh" in your rc file.


FWIW, I've just added this instruction to https://elv.sh/get/default-shell.html#vim-/-neovim




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: