隨筆 - 64  文章 - 9  trackbacks - 0
          <2010年5月>
          2526272829301
          2345678
          9101112131415
          16171819202122
          23242526272829
          303112345

          常用鏈接

          留言簿(6)

          我參與的團隊

          隨筆分類(88)

          隨筆檔案(92)

          文章分類(142)

          文章檔案(182)

          天基成員

          學習園

          我的海角

          搜索

          •  

          積分與排名

          • 積分 - 183418
          • 排名 - 319

          最新評論

          Windows下vi的文件配置 

          主頁:http://www.vim.org
          vim是linux下一款強大的編輯器,它以其強大的可定制性被廣大Code Fans所追捧。
          下載vim:
          http://www.vim.org/download.php#pc(windows版本)
          或者直接點擊這里 ftp://ftp.vim.org/pub/vim/pc/gvim72.exe
          下載–>安裝
          找到安裝目錄
          如我的是D:"Program Files"Vim
          我們會看到有一個 _vimrc 的文件,所有的配置文件都在這里
          這里我給大家分享一下我這只小鳥的vim配置文件
          就多加了幾句:
          就是 顯示行號、最大化UI窗口、默認背景配置、去掉所有選項卡。
          set nocompatible
          set nu
          source $VIMRUNTIME/vimrc_example.vim
          source $VIMRUNTIME/mswin.vim
          behave mswin
          if has(“gui_running”)
          set guioptions=
          colorscheme darkZ
          set cursorline
          if has(“win32″)
          set gfn=Raize
          au GUIEnter * simalt ~x
          else
          set guifont=Raize" 13
          set guifontwide=weiruanyahei" Bitmap" Song" 12
          endif
          else
          colorscheme default
          endif
          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
          黑體字是添加的,讀者可自行添加。
          另外 vim可以下載很多插件,http://www.vim.org/scripts/index.php
          posted on 2010-05-04 12:35 鵬凌 閱讀(451) 評論(0)  編輯  收藏 所屬分類: Software_Recommend
          主站蜘蛛池模板: 南宫市| 无为县| 临猗县| 镇巴县| 板桥市| 大足县| 虹口区| 凤冈县| 保德县| 平度市| 久治县| 庆安县| 平阴县| 柳州市| 桐梓县| 叙永县| 波密县| 长武县| 华亭县| 昌宁县| 平凉市| 五指山市| 德江县| 峡江县| 海林市| 开原市| 买车| 衡阳县| 邯郸县| 许昌县| 海林市| 黔江区| 沧州市| 灌阳县| 阿勒泰市| 远安县| 察雅县| 乐陵市| 平果县| 花垣县| 合作市|