win32下gvim的配置文件 _gvimrc

set ch=2 " Make command line two lines high
set tabstop=4
set mousehide  " Hide the mouse when typing text
set ruler
"set shell=cmd.exe
"set shellcmdflag=/c
set shell=F:/msys/1.0/bin/sh.exe
set makeprg=mingw32-make
set cindent shiftwidth=4
set path+=..,E:/C++StudySrc/FreeBSD/include,F:/MinGW/include/c++/3.4.2

command Format !astyle %
command -nargs=1 Dic !grep "<args>" F:/vim/vim63/dicForJefong
command NewMf !ft -tF:/vim/vim63/Templet/MTemplet -omakefile
command AddDic split $VIM/dicForJefong
command NewCf !ft -tF:/vim/vim63/Templet/CTemplet -o%
command NewHf !ft -tF:/vim/vim63/Templet/HTemplet -o%
command -nargs=1 Run split cmdOut | r !<args>


source $VIM/mswin.vim
"set jefong map
set cpo&vim
map <S-X>  :<C-R>:
map <F5>   :q!<CR>
map <F9>   :w<CR> :make debug<CR> :cl!<CR>
map <F2>   yw :split $VIM/mydoc/cfun.txt<CR> :let current_reg=@<CR> :/<C-R>=current_reg<CR><CR>
map <F3>   yw :split $VIM/mydoc/cfun-cn.txt<CR> :let current_reg=@<CR> :/函数名: <C-R>=current_reg<CR><CR>
map <F4>   yw :split <CR> :let current_reg=@<CR> :tselect <C-R>=current_reg<CR><CR>
" Make shift-insert work like in Xterm
map <S-Insert> <MiddleMouse>
map! <S-Insert> <MiddleMouse>

" Only do this for Vim version 5.0 and later.
if version >= 500

  " I like highlighting strings inside C comments
  let c_comment_strings=1

  " Switch on syntax highlighting if it wasn't on yet.
  if !exists("syntax_on")
    syntax on
  endif

  " Switch on search pattern highlighting.
  set hlsearch
  set nu

  " For Win32 version, have "K" lookup the keyword in a help file
  "if has("win32")
  "  let winhelpfile='windows.hlp'
  "  map K :execute "!start winhlp32 -k <cword> " . winhelpfile <CR>
  "endif

  " Set nice colors
  " background for normal text is light grey
  " Text below the last line is darker grey
  " Cursor is green, Cyan when ":lmap" mappings are active
  " Constants are not underlined but have a slightly lighter background
 colo murphy

endif

你可能感兴趣的:(shell,command,search,Comments,colors,Constants)