Consider this: [root@wiccproto ~]# sudo which vi /bin/vi [root@wiccproto ~]# which vi alias vi='vim' /usr/bin/vim