Chinaunix首页 | 论坛 | 博客
  • 博客访问: 36851
  • 博文数量: 10
  • 博客积分: 128
  • 博客等级: 二等列兵
  • 技术积分: 110
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-03 18:07
文章分类

全部博文(10)

文章存档

2012年(10)

我的朋友

分类: LINUX

2012-04-15 14:22:26

编辑~/.vimrc文件,分别设置用空格而不是用tab,一个tab多少个空格,自动缩进多少宽度,显示行号。
set expandtab
set tabstop=4
set shiftwidth=4
set nu
set cursorline


下次用vim打开文件该设置就生效了。




备忘一下以备下次复制粘帖(/etc/vimrc):

set encoding=utf-8
set fileformats=unix,dos
set ignorecase
set smartcase
set showmatch
highlight Comment ctermfg=LightCyan
set expandtab
set tabstop=4
set shiftwidth=4
set cursorline


阅读(7854) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~