Total Pageviews

Friday, 23 December 2011

Ubuntu DESKTOP下,安装vim

sudo gpedit /etc/apt/sources.list

注释掉以前的,添加如下:
deb http://mirrors.163.com/ubuntu/ karmic main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ karmic-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ karmic-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ karmic-backports main restricted universe multiverse


deb-src http://mirrors.163.com/ubuntu/ karmic main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic-backports main restricted universe multiverse

#cn99源
deb http://ubuntu.cn99.com/ubuntu/ karmic main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ karmic-backports restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ karmic-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ karmic-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ karmic main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ karmic-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ karmic-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ karmic-updates main restricted universe multiverse

保存退出,apt-get update, 至此,sources.list更新完成。

安装VIM:
sudo apt - get  install vim - gtk vim - doc cscope

用VIM阅读代码,参考:
http://zhwen.org/?p=articles/cscope-tags
http://easwy.com/blog/archives/vim-cscope-ctags/



推荐: 手把手教你把Vim改装成一个IDE编程环境(图文)

http://blog.csdn.net/wooin/archive/2007/10/31/1858917.aspx

No comments:

Post a Comment