• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            coreBugZJ

            此 blog 已棄。

            我喜歡的 VIM 配置

            喜歡用 VIM  快一年了,這里把自己喜歡的配置分享出來(lái),也免得我每次安裝,都要復(fù)制配置文件。


            這是我 Win7 下 gVim 的配置,Linux下略有區(qū)別。


            :colorscheme elflord
            set nocompatible
            "set guioptions-=m
            set mouse=a
            set guioptions-=T
            "set lines=50 columns=150

            set number
            set numberwidth=6
            set autoindent
            set smartindent
            set cindent
            set cmdheight=2

            set shiftwidth=8
            set tabstop=8
            set softtabstop=8
            set expandtab
            set smarttab

            "set cursorline
            "set cursorcolumn

            set guifont=Consolas:h14
            "set guifontwide=

            set ruler
            set showcmd
            set showmode

            "set encoding=utf-8
            "set fileencoding=utf-8
            "set fileencodings=utf-8
            "set termencoding=utf-8
            "set ambiwidth=double

            source $VIMRUNTIME/vimrc_example.vim
            source $VIMRUNTIME/mswin.vim
            behave mswin

            set diffexpr=MyDiff()
            function MyDiff()
              let opt = '-a --binary '
              if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
              if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
              let arg1 = v:fname_in
              if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif
              let arg2 = v:fname_new
              if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif
              let arg3 = v:fname_out
              if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif
              let eq = ''
              if $VIMRUNTIME =~ ' '
                if &sh =~ '\<cmd'
                  let cmd = '""' . $VIMRUNTIME . '\diff"'
                  let eq = '"'
                else
                  let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'
                endif
              else
                let cmd = $VIMRUNTIME . '\diff'
              endif
              silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 . eq
            endfunction


            可以在這里下載,去掉擴(kuò)展名即可用于 gVim 。

            /Files/coreBugZJ/_vimrc.txt 

            posted on 2011-03-16 15:28 coreBugZJ 閱讀(1750) 評(píng)論(2)  編輯 收藏 引用 所屬分類: LinuxEditor

            Feedback

            # re: 我喜歡的 VIM 配置 2011-03-20 11:10 mirguest

            >source $VIMRUNTIME/mswin.vim
            樓主竟然用了這個(gè)。
            貌似這樣子,像ctrl+x,ctrl+v就被覆蓋了。  回復(fù)  更多評(píng)論   

            # re: 我喜歡的 VIM 配置 2011-03-20 19:08 coreBugZJ

            @mirguest
            額。。。  回復(fù)  更多評(píng)論   


            无码人妻久久一区二区三区免费 | 久久人人爽人人爽AV片| 久久亚洲国产成人精品无码区| 久久久久久国产a免费观看黄色大片| 97久久国产露脸精品国产| 久久综合综合久久狠狠狠97色88| 久久久久国产一区二区三区| 亚洲精品无码久久久久| 精品国产婷婷久久久| 韩国免费A级毛片久久| 亚洲国产成人久久综合野外| 久久久91精品国产一区二区三区| 国产99久久久国产精品小说| 色偷偷888欧美精品久久久| 热re99久久6国产精品免费| 久久无码精品一区二区三区| 欧美精品一区二区精品久久| 久久综合久久自在自线精品自| 亚洲&#228;v永久无码精品天堂久久| 少妇内射兰兰久久| 国产成人久久精品一区二区三区| 久久久久国色AV免费观看| 久久精品国产99国产精品澳门| 天堂久久天堂AV色综合| 精产国品久久一二三产区区别 | 人妻无码久久一区二区三区免费| 日韩精品无码久久一区二区三| 91精品婷婷国产综合久久| 老司机国内精品久久久久| 精品国产VA久久久久久久冰| 国产成人精品久久| 麻豆一区二区99久久久久| 亚洲AV无码久久精品成人| 久久久久久精品免费看SSS| 久久精品国产欧美日韩99热| 欧美久久天天综合香蕉伊| 亚洲国产成人久久综合区| 四虎国产精品成人免费久久| 亚洲国产成人久久综合野外| 伊人精品久久久久7777| 国内精品综合久久久40p|