mingw开发环境中msys及vim的简单配置

在\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 gj
imap gk
nmap gj
nmap 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=
map :emenu
"--- End sweet menu

你可能感兴趣的:(Tips)