您现在的位置:主页 > 技术中心 > 操作系统 > Linux

VI显示行号并加亮颜色

来源:网络 责任编辑:admin 发表时间:2013-07-01 09:07 点击:

VI显示行号并加亮颜色
 
直接编辑~/.vimrc
set nocompatible
set number
filetype on
set background=light
syntax on
set autoindent
set smartindent
set tabstop=4
set shift
set showmatch
set guioptions-=T
set ruler
colorscheme evening
set nohlsearch
set modeline
set showcmd
set showfulltag
set showmode
set smartcase
set imcmdline
set previewwindow
然后编辑~/.bashrc
加入
alias vi='vim'
 
linux显示中文
#LANG="en_US.UTF-8"
#SYSFONT="latarcyrheb-sun16"
LANG="zh_CN.GB18030"
LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"
SUPPORTED="zh_CN.GB18030:zh_CN:zh"
SYSFONT="lat0-sun16"
SYSFONTACM="8859-15"

作者“顺妻自然”

    相关新闻>>

      发表评论
      请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
      评价:
      表情:
      用户名: 验证码:点击我更换图片

      推荐热点

      • /etc/fstab 详解
      • nginx主主集群
      •  LVS-NAT和LVS-DR模式的实现详解
      •  RHCE考试之磁盘配额
      • 学习笔记:ACL详解
      •  LVM逻辑卷管理器
      • suse linux双网卡双网关配置
      •  Nginx主主负载均衡架构
      • linux top命令详解

      快速直达

      ?? - ?? - ÝřŝžľŘÝź - TAGąęÇŠ - RSSśŠÔÄ - ??
      Copyright © 2004-2024 上海卓卓网络科技有限公司