Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4748
  • 博文数量: 3
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 40
  • 用 户 组: 普通用户
  • 注册时间: 2011-10-13 20:13
文章分类

全部博文(3)

文章存档

2013年(3)

我的朋友

分类: LINUX

2013-01-23 17:44:53

1, turn on the syntax by default


method 1: edit /etc/vimrc

and add :syntax on


Problem: sometimes you have no right to edit that file (usually owned by root, especially in a large corperation


method 2: use alias

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.....)


阅读(188) | 评论(0) | 转发(0) |
0

上一篇:perl: to avoid zombie process

下一篇:没有了

给主人留下些什么吧!~~