add highlight control to F4, fix :Q, et al.

This commit is contained in:
dave 2009-02-14 02:47:06 -06:00
parent 2e8fe80bb7
commit a76be9ce80

12
vimrc
View file

@ -245,12 +245,11 @@ map Y y$
vmap K k vmap K k
" :W and :Q are annoying " :W and :Q are annoying
nmap :X :x command! -nargs=0 -bang X x<bang>
nmap :W :w command! -nargs=0 -bang Q q<bang>
nmap :Q :q command! -nargs=0 -bang W w<bang>
nmap :WQ :wq command! -nargs=0 -bang WQ wq<bang>
nmap :Wq :wq command! -nargs=0 -bang Wq wq<bang>
" just continue " just continue
nmap K K<cr> nmap K K<cr>
@ -258,6 +257,7 @@ nmap K K<cr>
" Toggle numbers with F12 " Toggle numbers with F12
nmap <silent> <F12> :silent set number!<CR> nmap <silent> <F12> :silent set number!<CR>
imap <silent> <F12> <C-O>:silent set number!<CR> imap <silent> <F12> <C-O>:silent set number!<CR>
noremap <silent> <F4> :set hls!<CR>
" Don't force column 0 for # " Don't force column 0 for #
inoremap # X<BS># inoremap # X<BS>#