mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-08-05 16:48:38 +00:00
<escape> now disables highlighting
w!! brings up sudo in vim
This commit is contained in:
parent
d31cbe1cd6
commit
d059ff8cb2
1 changed files with 6 additions and 0 deletions
6
vimrc
6
vimrc
|
@ -304,6 +304,12 @@ if has('eval')
|
|||
inoremap <buffer> <C-K> <C-R>=EmacsKill()<CR>
|
||||
endif
|
||||
|
||||
" w!! for sudo w!
|
||||
cmap w!! w !sudo tee % >/dev/null
|
||||
|
||||
" clear search
|
||||
nnoremap <esc> :noh<return><esc>
|
||||
|
||||
" Disable q and Q
|
||||
map q <Nop>
|
||||
map Q <Nop>
|
||||
|
|
Loading…
Add table
Reference in a new issue