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

          常用鏈接

          留言簿(6)

          我參與的團隊

          隨筆分類(88)

          隨筆檔案(92)

          文章分類(142)

          文章檔案(182)

          天基成員

          學習園

          我的海角

          搜索

          •  

          積分與排名

          • 積分 - 183507
          • 排名 - 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 鵬凌 閱讀(453) 評論(0)  編輯  收藏 所屬分類: Software_Recommend
          主站蜘蛛池模板: 彰武县| 施甸县| 周宁县| 东乡| 富平县| 福清市| 中宁县| 贵州省| 台东县| 东明县| 浏阳市| 乡城县| 东安县| 涡阳县| 旌德县| 达拉特旗| 浏阳市| 余干县| 龙井市| 静安区| 万荣县| 山丹县| 北辰区| 天峻县| 壤塘县| 海宁市| 越西县| 浮山县| 茂名市| 额尔古纳市| 大港区| 金溪县| 咸阳市| SHOW| 黎川县| 定陶县| 赤壁市| 瓮安县| 惠水县| 子长县| 曲靖市|