I am trying to launch vim. I probably created a bad symlink to vim. I used which and alias commands to find out what is happening. Why doesn't it run vim properly?
MacBook-Air:~ miszo97$ which vim
/usr/bin/vim
MacBook-Air:~ miszo97$ vim
-bash: /usr/local/bin/vim: No such file or directory
MacBook-Air:~ miszo97$ alias vim
-bash: alias: vim: not found
    
/usr/local/bin/vimis not just a hashed path? compare the output oftype vimwith that ofwhich vimand executehash -d vimif necessary./usr/bin/vim, at least then we can be sure you actually have it properly installed. Then tryls -l /usr/bin/vim, if the first letter isl, you have overwritten your vim with a symlink somehow. Then show us whatecho $PATHoutputs and I guess double-checking if there is something fishy in /usr/local/bin/ won't hurt withls -l /usr/local/bin/vimbrew install vimto reinstall vim should capable fix automatically.