• <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下略有區(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


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

            /Files/coreBugZJ/_vimrc.txt 

            posted on 2011-03-16 15:28 coreBugZJ 閱讀(1765) 評論(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
            額。。。  回復  更多評論   


            久久免费视频一区| 日韩久久久久中文字幕人妻| 国产精品一久久香蕉国产线看| 久久久久久av无码免费看大片| 国产精品久久久99| 免费精品久久天干天干| 国产婷婷成人久久Av免费高清| 久久99精品久久久久久hb无码 | 久久无码AV中文出轨人妻| 久久久久久国产精品无码下载 | 国产农村妇女毛片精品久久| 无码人妻久久一区二区三区蜜桃| 人妻少妇久久中文字幕一区二区| 伊人久久综合热线大杳蕉下载| 国内精品久久久久久久久电影网| 99精品久久久久久久婷婷| 欧美日韩精品久久久免费观看| 丰满少妇人妻久久久久久4| 精品久久久久久无码中文字幕一区 | 一日本道伊人久久综合影| 久久se精品一区二区影院| 久久综合丁香激情久久| 久久精品嫩草影院| 精品久久久久久99人妻| 久久九九免费高清视频| 色婷婷久久综合中文久久一本| 狠狠色伊人久久精品综合网| 久久精品国产免费| 2021国产精品午夜久久| 久久婷婷五月综合国产尤物app| 精品熟女少妇av免费久久| 欧美性猛交xxxx免费看久久久| 亚洲精品美女久久久久99| 久久综合久久综合久久| 亚洲国产美女精品久久久久∴| 国产日韩欧美久久| 99久久伊人精品综合观看| 精品久久久噜噜噜久久久| 人妻无码αv中文字幕久久琪琪布 人妻无码精品久久亚瑟影视 | 亚洲а∨天堂久久精品9966| 99久久国产热无码精品免费久久久久|