vim的c语言环境简单配置

来源:互联网 发布:淘宝口碑网 编辑:程序博客网 时间:2024/05/16 16:55

1.进入vimrc

$ vim ~/.vimrc

2.拷贝以下代码置于文件末端(行号,自动换行,括号匹配,关键字高亮)

 if filereadable("/etc/vim/vimrc.local")source /etc/vim/vimrc.localendifsyntax onset tabstop=4set nu!set shiftwidth=4set autoindentset cindentset fdm=markerif &term=="xterm"set t_Co=8set t_Sb=^[[4%dmset t_Sf=^[[3%dmendif


0 0
原创粉丝点击