mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-08-05 16:48:38 +00:00
add highlight control to F4, fix :Q, et al.
This commit is contained in:
parent
2e8fe80bb7
commit
a76be9ce80
1 changed files with 6 additions and 6 deletions
12
vimrc
12
vimrc
|
@ -245,12 +245,11 @@ map Y y$
|
|||
vmap K k
|
||||
|
||||
" :W and :Q are annoying
|
||||
nmap :X :x
|
||||
nmap :W :w
|
||||
nmap :Q :q
|
||||
nmap :WQ :wq
|
||||
nmap :Wq :wq
|
||||
|
||||
command! -nargs=0 -bang X x<bang>
|
||||
command! -nargs=0 -bang Q q<bang>
|
||||
command! -nargs=0 -bang W w<bang>
|
||||
command! -nargs=0 -bang WQ wq<bang>
|
||||
command! -nargs=0 -bang Wq wq<bang>
|
||||
|
||||
" just continue
|
||||
nmap K K<cr>
|
||||
|
@ -258,6 +257,7 @@ nmap K K<cr>
|
|||
" Toggle numbers with F12
|
||||
nmap <silent> <F12> :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 #
|
||||
inoremap # X<BS>#
|
||||
|
|
Loading…
Add table
Reference in a new issue