mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-04-13 09:30:06 +00:00
Merge branch 'master' of gitosis@majnematic.com:davesdots
This commit is contained in:
commit
f445bcf10a
1 changed files with 6 additions and 5 deletions
11
vimrc
11
vimrc
|
@ -160,9 +160,6 @@ if has('mouse')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if has('autocmd')
|
if has('autocmd')
|
||||||
" unhighlight search when idle
|
|
||||||
autocmd CursorHold * nohls | redraw
|
|
||||||
|
|
||||||
" always refresh syntax from the start
|
" always refresh syntax from the start
|
||||||
autocmd BufEnter * syntax sync fromstart
|
autocmd BufEnter * syntax sync fromstart
|
||||||
|
|
||||||
|
@ -248,8 +245,11 @@ map Y y$
|
||||||
vmap K k
|
vmap K k
|
||||||
|
|
||||||
" :W and :Q are annoying
|
" :W and :Q are annoying
|
||||||
cmap W w
|
command! -nargs=0 -bang X x<bang>
|
||||||
cmap Q q
|
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
|
" just continue
|
||||||
nmap K K<cr>
|
nmap K K<cr>
|
||||||
|
@ -257,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