Changes

CentOS Linux Distribution Reference

661 bytes added, 04:46, 23 January 2014
/* vi editor vim syntax highlighting */
The following lines were added (+) and removed (-):
On CentOS the command 'vi' doesn't open vim as 'vim' would.On CentOS the command 'vi' and 'vim' by default, both open the vim editor (vim enhanced), however, with some differences.  The vi command utilizes what is known as 'Small version without GUI' while executing the vim command utilizes 'Huge version without GUI', both when executed from the console respectively.  You can test this by using the :version command within the vim editor. Another way to see the differences is to execute the following from the shell: If -syntax is on the line, you don't have syntax highlighting compiled in.  If +syntax is on the line, then it does.  Note that on CentOS you will see different options for vi as opposed to vim.  You can set the vi command to point to vim   alias vi=vimIf -syntax is on the line, you don't have syntax highlighting compiled in.  If +syntax is on the line, then it does.  Note that on CentOS you will see different options for vi as opposed to vim.  Unlike some Fedora versions, and variants like Trustix, it is not an issue with only vim minimum installed, this is not the case.  See by the version output on CentOS both are using vim enhanced. The vi command points to /bin/vi while the vim command points to /usr/bin/vim yet they both use vim enhanced.       
Bureaucrat, administrator
14,711
edits