六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 29|回复: 0

我的 .vimrc 配置

[复制链接]

升级  47.35%

633

主题

633

主题

633

主题

探花

Rank: 6Rank: 6

积分
1947
 楼主| 发表于 2013-1-26 13:42:29 | 显示全部楼层 |阅读模式
1. 支持中文编辑,不会导致删除半个字符和光标移动半个中文字符的问题
2.支持C/C++的自动缩进
3.解决在自动缩进状态下,用鼠标粘贴时引起的格式错乱
<div style="padding-right: 5.4pt; padding-left: 5.4pt; background: #e6e6e6; padding-bottom: 4px; width: 95%; padding-top: 4px;">"author:zhouhh
"blog:http://blog.csdn.net/ablo_zhou
"email:ablozhou@gmail.com
"date:2008.4.1

setnocompatible
"UseVimdefaults(muchbetter!)
setbs=indent,eol,start
"Allowbackspacingovereverythingininsertmode
setai
"Alwayssetauto-indentingon
setcindent
"forceditor
setpaste
"forpastemayformattextdisorder

"setbackup"Keepabackupfile
setviminfo='20,
"500"read/writea.viminfofile--limitregsto500lines
sethistory=100
"keep50linesofcommandhistory
setruler
"Showthecursorpositionallthetime

"colorschemeelflord"Makethecolorsbrighterfortransparentterminals
setts=4
"SetTABStop
setshiftwidth
=4"Setshiftwidthinprogrammingwhenusing>>
settextwidth=0
"Don'twrapwordsbydefault
setignorecase
"Ignorecaseinsearching
setsmartcase
"Searchcase-sensitivelywhencapitalizedletterfoundinpattern
setnobackup
"Don'tkeepabackupfile
setshowcmd
"Show(partial)commandinstatusline
setshowmatch
"Showmatchingbrackets
setincsearch
"IncrementalSearch
"setautowrite"Automaticallysavefilebefore:nextand:prev
"setnowrap"Donotwraptext
"settextwidth=80"Placeautomatictextbreaks

"EnableChineseencodingsupport
setencoding=euc-cn
ifv:lang=~
"^zh_CN"
setfileencodings=gb2312
setguifontset=*-r-*
"Youmaychangethefonttoyourlike
endif

"Switchsyntaxhighlightingon,whentheterminalhascolors
"Alsoswitchonhighlightingthelastusedsearchpattern.
if&t_Co>
2||has("gui_running")
syntaxon
sethlsearch
endif

"setnohlsearch"Ifyoudonotlikehighlightingsearchpattern
~
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表