I have installed vim in my computer, and i see there are two executables in my OS, one is in /usr/local/bin and the other is in /usr/bin. I want to use the /usr/bin vim but, whenever I type vim it takes the /usr/local/bin which I don’t want. So, inorder to set the PATH of vim as /usr/bin instead of /usr/local/bin. How can I do that? Because, the vim in the /usr/local/bin is not that great, I mean it acts like vi editor.
Thanks
It depends on your shell. If you’re using bash, you can put
/usr/binat the start of your PATH by adding the following to your~/.bashrcfile:Questions like these are better suited for unix.SE, by the way.