make the :WQ stuff more compat, removed the auto de-highlighting in favor of a key

This commit is contained in:
dave 2009-02-12 19:41:34 -06:00
parent 4da2e78619
commit 2e8fe80bb7

11
vimrc
View file

@ -160,9 +160,6 @@ if has('mouse')
endif endif
if has('autocmd') if has('autocmd')
" unhighlight search when idle
autocmd CursorHold * nohls | redraw
" always refresh syntax from the start " always refresh syntax from the start
autocmd BufEnter * syntax sync fromstart autocmd BufEnter * syntax sync fromstart
@ -248,8 +245,12 @@ map Y y$
vmap K k vmap K k
" :W and :Q are annoying " :W and :Q are annoying
cmap W w nmap :X :x
cmap Q q nmap :W :w
nmap :Q :q
nmap :WQ :wq
nmap :Wq :wq
" just continue " just continue
nmap K K<cr> nmap K K<cr>