From 222ce0291af906213abc7152a0a7f46314a41072 Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Tue, 23 Jun 2015 10:32:52 +0200 Subject: Added sudo save to vimrc --- vim/.vimrc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'vim/.vimrc') diff --git a/vim/.vimrc b/vim/.vimrc index 0cba1ab..ad1e908 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -23,11 +23,14 @@ set foldmethod=indent set listchars=trail:·,tab:▸\ ,eol:¬ set scrolloff=1 +" Save as sudo +cnoremap w!! w !sudo tee > /dev/null % + " Switch windows with [direction] -map j -map k -map h -map l +noremap j +noremap k +noremap h +noremap l " Never use the arrow keys noremap "" -- cgit v1.2.3