Originally Posted by khairkhoah
Here's your problem.
It SHOULD say
Now the only programs your machine can find are in /opt/shibboleth-idp
which would also explain that it cannot find vi or vim.
Try to use the full path to your editor, e.g.
/usr/bin/vim for editing your profile.local