ubuntu下vim的配置和改造
来源:互联网 发布:卫计委大数据 编辑:程序博客网 时间:2024/05/21 07:30
如果想所有用户生效 请修改 /etc/vimrc (建议先cp一份),若只对当前用户则增加~/.vimrc这个文件。
我的简单配置如下:
1 set nocompatible 2 set number 3 set ruler 4 set hlsearch 5 set smartindent 6 set showmatch 7 set display=lastline
1。取消vi兼容
2。设置显示行号
3。显示标尺
4。高亮显示查找内容
5。智能缩进
6。括号匹配高亮
7。解决缩进带来的一些显示问题
sudo apt-get install ctags cscope
安装这两个工具
接下来在vimrc配置文件里添加对cscope数据库的自动载入
if has("cscope") set csprg=/usr/local/bin/cscope set csto=0 set cst set nocsverb " add any database in current directory if filereadable("cscope.out") cs add cscope.out " else add database pointed to by environment elseif $CSCOPE_DB != "" cs add $CSCOPE_DB endif set csverb endif
cscope使用
- ubuntu下vim的配置和改造
- Ubuntu 8.04下的vim改造和cscope的配置(初步)
- Ubuntu下Vim的配置
- ubuntu 下 vim 的配置
- ubuntu下vim的配置
- Ubuntu下Vim的配置
- ubuntu下vim的配置
- Ubuntu下vim的配置
- ubuntu 下vim编辑器的安装和配置
- ubuntu 下vim安装、配置和插件的添加使用
- ubuntu 下vim安装、配置和插件的添加使用
- ubuntu 下 vim安装和配置
- ubuntu下配置vim
- Ubuntu下Vim配置
- Ubuntu下VIM配置
- 我的Ubuntu下的vim配置
- Ubuntu下vim+ctags的配置
- Ubuntu下的Vim配置(一)
- Java编译错误“No enclosing instance of type AA is accessible. Must qualify the allocation with an enclosi
- EXTJS 2.2版本在IE9中会报错:对象不支持“createContextualFragment”属性或方法
- About 异步编程
- 安装iis5.1时找不到zClientm.exe的解决方法
- Web数据挖掘综述
- ubuntu下vim的配置和改造
- C++层Service的创建与使用
- MFC属性页和向导对话框的创建
- On Story Estimation: 单一职责原则
- Mybatis学习笔记一(环境搭建)
- 研发 vs 售前
- java文件和目录操作类代码
- Android中将布局文件/View添加至窗口过程分析 ---- 从setContentView()谈起
- 回头时,不后悔