2013年(3)
分类: LINUX
2013-01-23 17:44:53
and add :syntax on
Problem: sometimes you have no right to edit that file (usually owned by root, especially in a large corperation
you can use alias such as 'vim=vim -c "syntax on"'
this works because the -c optioin allow vim to run this command right after it has loaded the files. Also you can add other useful commands (up to 10 according to vim manual.
(to be continued.....)