msys中的vim配置

6 6 月

msys中的vim使用各种不习惯,修改下配置后好了很多

修改~/.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

 

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注