From 0c22618c47839c1165f7541905248d98a46c35d1 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Tue, 18 Aug 2015 17:16:37 +0200 Subject: [PATCH] Add map to save a file with sudo permissions. --- vimrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vimrc b/vimrc index 3dcd39b..6551047 100755 --- a/vimrc +++ b/vimrc @@ -116,8 +116,8 @@ map :split map :vsplit " Navigation " Détails sur les buffers: http://vim-fr.org/index.php/Buffer -map t :bp -map s :bn +"map p :bp +"map s :bn map b :b "Navigation splits @@ -126,6 +126,9 @@ map h h map k k map l l +" Save with sudo permissions +nmap s :w !sudo tee % +imap s :w !sudo tee % """""""""""""""""""""""""""""""""""""""""""""""" " UN PEU D'EXERCICE