/etc/vim/vimrc文件实现vim效果

来源:互联网 发布:乐视2手机网络时间不准 编辑:程序博客网 时间:2024/05/22 21:11

创建/etc/vim/vimrc文件 ,内容如下:

/*************start,此注释行不包括***********************/

 

  set nocompatible    set encoding=utf-8    set title    set number    colorscheme evening    "colorscheme elflord    "set mouse=a    set hlsearch    set incsearch    set lbr    set backspace=indent,eol,start    set history=50    set ruler    set showcmd    "set list    "set listchars=tab:>-,trail:-    filetype plugin indent on    " C/C++    set sm    set sw=4    set ts=4  "set tabstop=4    set et    set smarttab    set autoindent    set showmatch    syntax on    " chinese support    set fo+=mB    set ambiwidth=double    set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1    set paste

 

/****************end,此注释行不包括************************/

 

该包可完善vim功能,比较查找全显、命令:vsplit下tag出文件名,u实现撤消到底……
修改步骤:
一、备份/etc/vim/vimrc,备份系统文件是个好习惯,以免系统崩溃启动不了。
二、完全替换该vimrc文件,OK。
其中vim状态下输入:set nolist可去掉tag线,:set list可显示tag线

原创粉丝点击