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
|
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>#
|
||||||
|
|
Loading…
Add table
Reference in a new issue