周海汉的开发专栏

古来圣贤皆寂寞,惟有饮者留其名

用户操作
[即时聊天] [发私信] [加为好友]
周海汉ID:ablo_zhou
124832次访问,排名682好友5人,关注者32
it,software
ablo_zhou的文章
原创 115 篇
翻译 0 篇
转载 44 篇
评论 232 篇
周海汉的公告
欢迎访问的朋友评论,留言 http://ablozhou.spaces.live.com
最近评论
ice:Cheap Jordan是一家为您Cheap jordan建设网上平台的高科技服务Cheap jordan网络公司,Cheap jordan凭借优秀的人才技术和Cheap jordan经验实力致力于Cheap jordan合作开发、Cheap jordan软件开发等项目。[url=http://www.sel……
Dennis Zhang:非常感谢 难得有你这样的大好人
nm10kt:nm10kt
gtg10y
wow gold
wow gold
gonaseal
nm10kt
gtg10y
wow gold
wow gold
gonaseal
nm10kt
gtg10y
[url=http://gonaseal.com]wow gold[/url]
[url=http://lomenxi.com]wow gold[/url]
[url=http://gonaseal.com/Power%20Leveling.htm]gonaseal[/url]
[url=http://gonase……
文章分类
收藏
    相册
    开发
    我的相册
    我的网站
    linux内存管理
    我的个人日志
    存档
    软件项目交易
    订阅我的博客
    XML聚合  FeedSky
    订阅到鲜果
    订阅到Google
    订阅到抓虾
    订阅到BlogLines
    订阅到Yahoo
    订阅到GouGou
    订阅到飞鸽
    订阅到Rojo
    订阅到newsgator
    订阅到netvibes

    原创 我的 .vimrc 配置收藏

    新一篇: 批量修改后缀名的bash 脚本 | 旧一篇: 将文件拷贝n份的bash脚本

     

    1. 支持中文编辑,不会导致删除半个字符和光标移动半个中文字符的问题

    2.支持C/C++的自动缩进

    3.解决在自动缩进状态下,用鼠标粘贴时引起的格式错乱

    " author: zhouhh
    " blog  : http://blog.csdn.net/ablo_zhou
    " email : ablozhou@gmail.com
    " date  : 2008.4.1

    set nocompatible 
    " Use Vim defaults (much better!)
    set bs=indent,eol,start 
    " Allow backspacing over everything in insert mode
    set ai 
    " Always set auto-indenting on
    set cindent 
    " for c editor
    set paste 
    " for paste may format text disorder

    "set backup " Keep a backup file
    set viminfo='20,
    "500 " read/write a .viminfo file -- limit regs to 500 lines
    set history=100 
    " keep 50 lines of command history
    set ruler 
    " Show the cursor position all the time

    " colorscheme elflord " Make the colors brighter for transparent terminals
    set ts=4 
    " Set TAB Stop
    set shiftwidth
    =4 " Set shift width in programming when using >>
    set textwidth=0 
    " Don't wrap words by default
    set ignorecase 
    " Ignore case in searching
    set smartcase 
    " Search case-sensitively when capitalized letter found in pattern
    set nobackup 
    " Don't keep a backup file
    set showcmd 
    " Show (partial) command in status line
    set showmatch 
    " Show matching brackets
    set incsearch 
    " Incremental Search
    "set autowrite " Automatically save file before :next and : prev
    "set nowrap " Do not wrap text
    "set textwidth=80 " Place automatic text breaks

    " Enable Chinese encoding support
    set encoding=euc-cn
    if v:lang =~ 
    "^zh_CN"
    set fileencodings=gb2312
    set guifontset=*-r-* 
    " You may change the font to your like
    endif

    " Switch syntax highlighting on, when the terminal has colors
    " Also switch on highlighting the last used search pattern.
    if &t_Co > 
    2 || has("gui_running")
    syntax on
    set hlsearch
    endif

    "set nohlsearch "If you do not like highlighting search pattern
    ~
     

    发表于 @ 2008年04月01日 10:29:00|评论(loading...)|编辑

    新一篇: 批量修改后缀名的bash 脚本 | 旧一篇: 将文件拷贝n份的bash脚本

    评论:没有评论。

    发表评论  


    登录
    Csdn Blog version 3.1a
    Copyright © 周海汉