在\msys\1.0\etc\profile文件中增加几行
alias ls='ls --color'
alias la='ls -a --color'
alias ll='ls -al --color'
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'
修改~/.vimrc
syntax on
set number
set tabstop=4
set autoindent
set ruler
set showcmd
set showmode
set showmatch
set mouse=a
set backspace=2
set smartindent
set smarttab
"set shiftwidth=4
"--- The following commands make the navigation keys work like standard editors
imap <silent> <Down> <C-o>gj
imap <silent> <Up> <C-o>gk
nmap <silent> <Down> gj
nmap <silent> <Up> gk
"--- Ends navigation commands
"--- The following adds a sweet menu, press F4 to use it.
source $VIMRUNTIME/menu.vim
set wildmenu
set cpo-=<
set wcm=<C-Z>
map <F4> :emenu <C-Z>
"--- End sweet menu