• <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  快一年了,這里把自己喜歡的配置分享出來,也免得我每次安裝,都要復制配置文件。


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


            :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


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

            /Files/coreBugZJ/_vimrc.txt 

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

            Feedback

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

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

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

            @mirguest
            額。。。  回復  更多評論   


            亚洲人成无码久久电影网站| 99久久这里只精品国产免费| 精品久久久中文字幕人妻| 女同久久| 欧美一级久久久久久久大片| 亚洲伊人久久成综合人影院| 国产精品激情综合久久| 亚洲精品国产美女久久久| 国产精品久久久久久久久免费| 久久不见久久见免费影院www日本| 亚洲伊人久久成综合人影院 | www.久久热| 精品久久久久久国产三级| 精品久久久久久国产 | 亚洲国产精品久久久久| 伊人久久无码精品中文字幕| 久久国产一区二区| 人妻精品久久久久中文字幕69| 久久亚洲av无码精品浪潮| 国产成年无码久久久久毛片| 伊人色综合九久久天天蜜桃| 中文字幕一区二区三区久久网站 | 久久久噜噜噜久久| 国内精品久久国产大陆| 亚洲中文字幕无码久久综合网 | 久久国产色AV免费看| 免费精品久久天干天干| 人妻中文久久久久| 欧美大战日韩91综合一区婷婷久久青草 | 久久久久女人精品毛片| 亚洲欧美日韩精品久久亚洲区| 久久国产精品久久精品国产| 成人妇女免费播放久久久| 久久久婷婷五月亚洲97号色| 狠狠色丁香久久婷婷综合| 久久久久久综合网天天| 狠狠综合久久综合88亚洲| 狠狠色综合网站久久久久久久高清| 人人狠狠综合久久亚洲| 青青草国产97免久久费观看| 精品久久久久中文字|