For some unknown reason the default vim editor (which you get when you type "vi") is a pruned down version of vim compiled with almost no features. In particular you do not get syntax highlighting or status line customization. You also do not get about a million other things. The way to find out what you are running is:
vi --versionYou also may want to type:
which viIn my case the latter shows me:
alias vi='vim' /usr/bin/vimI have no idea where this alias is getting set, but this was the source of a lot of confusion. I actually want this alias as it turns out.
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May 14 2013 13:18:26) Included patches: 1-415, 417-944 Modified byThe Huge version thing is good. On another system I was seeing:Compiled by Huge version without GUI. Features included (+) or not (-): ...
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May 14 2013 13:18:45) Included patches: 1-415, 417-944 Modified byHere the "Small version" thing is bad.Compiled by Small version without GUI. Features included (+) or not (-):
So, to get the huge version with all the cool stuff:
yum install vim-enhancedThen either invoke it by typing "vim", or (as I do) put an alias in your .bashrc so that vi runs vim.
alias vi='vim'It is tempting to yum erase vim-minimal.
Tom's Computer Info / tom@mmto.org