Chinaunix首页 | 论坛 | 博客
  • 博客访问: 179338
  • 博文数量: 27
  • 博客积分: 705
  • 博客等级: 上士
  • 技术积分: 311
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-10 15:10
文章分类

全部博文(27)

文章存档

2012年(13)

2011年(14)

分类: LINUX

2011-04-22 09:19:44

$cd ~
$touch .vimrc
$vi .vimrc
加如以下配置:
 set number                  " 显示行号
 set autoindent              "自动对齐   
 set smartindent            "智能对齐
 set showmatch             "括号匹配模式
 set ruler                       "显示状态行
 set incsearch                "搜索时一边输入一边显示效果
 set ignorecase              "忽略大小写
 set tabstop=4                "tab键为4个空格
 set shiftwidth=4
 set softtabstop=4
 set cindent                             " C语言格式对齐
 "set nobackup                        "不要备份文件
 "set clipboard+=unnamed     "与windows共享剪贴板
 syntax enable                        "语法高亮
 syntax on 
阅读(1259) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~