您的位置:首页 > 其它

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

2012-09-20 14:46 381 查看
在\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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: