mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-04-13 09:30:06 +00:00
make the :WQ stuff more compat, removed the auto de-highlighting in favor of a key
This commit is contained in:
parent
4da2e78619
commit
2e8fe80bb7
1 changed files with 6 additions and 5 deletions
11
vimrc
11
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,12 @@ map Y y$
|
|||
vmap K k
|
||||
|
||||
" :W and :Q are annoying
|
||||
cmap W w
|
||||
cmap Q q
|
||||
nmap :X :x
|
||||
nmap :W :w
|
||||
nmap :Q :q
|
||||
nmap :WQ :wq
|
||||
nmap :Wq :wq
|
||||
|
||||
|
||||
" just continue
|
||||
nmap K K<cr>
|
||||
|
|
Loading…
Add table
Reference in a new issue