vimrc文件

本文详细介绍了一个具体的Vim配置文件设置,包括编码设置、语法高亮、自动补全、搜索匹配等功能,有助于提升编辑效率。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
   set termencoding=utf-8
      set encoding=utf-8

set nocompatible


set foldmethod=syntax

set tabstop=4
syntax on
set incsearch
set showmatch
set hls is
set hlsearch
set expandtab ts=4 sw=4 sts=4
                                                                                                                                                                        

" encoding
set encoding=GBK
set fileencodings=GBK


set fileencodings=utf-8,gbk,gb18030,utf-16,big5


:hi CursorLine   cterm=NONE ctermbg=red ctermfg=white guibg=darkred guifg=white
set cursorline

set nowritebackup
set smartindent

autocmd BufWinLeave * if expand("%") != "" | mkview | endif
autocmd BufWinEnter * if expand("%") != "" | loadview | endif

set backspace=indent,eol,start


set laststatus=2 "show status line 
set statusline=%f%m%r%w\ %y\ \ \ \

set statusline+=%=
set statusline+=[line:%l/%L][col:%c][%3p%%]             "[line:499/677][col:74][ 73%]  


let Tlist_Ctags_Cmd='/usr/bin/ctags'

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值