Found vim write Erlang code syntax indentation is not correct, later found that Vim is 7.0, vim7.3 started to support the Erlang, so upgrade vim
Git downloads the source package, and then a series of configuration installations
Http://www.2cto.com/os/201212/176537.html
Http://www.linuxidc.com/Linux/2011-04/34594.htm
./configure--enable-netbeans--enable-multibyte--enable-fontset--with-vim-name=vi--with-features=huge
If add--prefix=/usr/local/vim, then the last place is placed in the/usr/local/vim/bin directory, or the default/usr/local/bin, if the--WITH-VIM-NAME=VI is finally compiled out called VI, Otherwise called VIM (all related can add alias)
Make && make install
And then found that vim--version is still old,
So the solution is to put/usr/local/bin inside the newly compiled vim to make a link ln-s/usr/local/bin/vim/usr/bin/vim
or alias a bit.
VIM Support for Erlang syntax