<escape> now disables highlighting

w!! brings up sudo in vim
This commit is contained in:
David Majnemer 2010-09-17 19:22:54 -05:00
parent d31cbe1cd6
commit d059ff8cb2

6
vimrc
View file

@ -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>