diff --git a/vimrc b/vimrc index 03b4c05..7033707 100644 --- a/vimrc +++ b/vimrc @@ -160,9 +160,6 @@ if has('mouse') endif if has('autocmd') - " unhighlight search when idle - autocmd CursorHold * nohls | redraw - " always refresh syntax from the start autocmd BufEnter * syntax sync fromstart @@ -248,8 +245,11 @@ map Y y$ vmap K k " :W and :Q are annoying -cmap W w -cmap Q q +command! -nargs=0 -bang X x +command! -nargs=0 -bang Q q +command! -nargs=0 -bang W w +command! -nargs=0 -bang WQ wq +command! -nargs=0 -bang Wq wq " just continue nmap K K @@ -257,6 +257,7 @@ nmap K K " Toggle numbers with F12 nmap :silent set number! imap :silent set number! +noremap :set hls! " Don't force column 0 for # inoremap # X#