ubuntu11.04中vi编辑器的配置
来源:互联网 发布:淘宝加盟代理怎么样 编辑:程序博客网 时间:2024/04/30 15:39
其实ubuntu的使用很方便。首先,在软件中心安装所有与vi相关的软件,截图如下:
进入Ubuntu软件中心后在搜索框里输入vim,截图如下:
选择并进行安装。
其次,打开终端,输入命令:vim /etc/vim/vimrc
在其最后加上如下几行:
set nocompatible
set autoindent
set smartindent
set showmatch
set ruler
set incsearch
set tabstop=4
set shiftwidth=4
set softtabstop=4
set cindent
set nobackup
set clipboard+=unnamed
即可。
附:
set nocompatible 不使用vi默认键盘布局
set autoindent 自动对齐
set smartindent 智能对齐
set showmatch 括号匹配模式
set ruler 显示状态行
set incsearch 搜索时一边输入一边显示效果
set tabstop=4 tab键为4个空格
set shiftwidth=4
set softtabstop=4
set cindent C语言格式对齐
set nobackup 不要备份文件
set clipboard+=unnamed 与windows共享剪贴板
- ubuntu11.04中vi编辑器的配置
- vi编辑器的配置
- VI编辑器的配置
- VI编辑器的配置
- vi编辑器的配置
- Vi编辑器的简单配置
- linux vi编辑器的配置
- VI 编辑器的一些配置
- 我的VI编辑器配置
- ubuntu下Vi编辑器的配置
- vi 编辑器的简单配置使用
- Linux VI编辑器配置
- VI编辑器配置
- VI编辑器配置
- vi编辑器配置
- 怎样配置vi编辑器
- vi编辑器简单配置
- Ubuntu11.04的安装,及初步配置
- android用听筒不断播放音乐
- 解决m2e插件maven-dependency-plugin问题
- 银行存款利率
- SQLite3数据库操作语法
- 许嵩安徽蚌埠安徽财经大学歌友会
- ubuntu11.04中vi编辑器的配置
- 关于教育:生存还是生活?
- C#+Stream+和+byte[]+之间的转换
- Shunting+yard -- RPN 算法
- 了解你的计算机---进程的秘密
- c# winform pictureBox
- 再见了 - 乔布斯
- Discuz的DEBUG中的sql列表是如何产生的
- FA小讲