From 1b9d82707853f0a2f055f7b59ad86986aea921c7 Mon Sep 17 00:00:00 2001 From: gotbletu Date: Sat, 1 Mar 2014 16:41:47 -0800 Subject: [PATCH] sudo for vim --- vim_sudo_permission.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 vim_sudo_permission.txt diff --git a/vim_sudo_permission.txt b/vim_sudo_permission.txt new file mode 100644 index 0000000..4548204 --- /dev/null +++ b/vim_sudo_permission.txt @@ -0,0 +1,15 @@ +Notes for video: http://www.youtube.com/watch?v=C6xqO4Z1nIo + + + +1. manually save a file with sudo permission +:w !sudo tee % + + +2. save to ~/.vimrc +" leader key = backslash ( \ ) +" useage: \sudo + +" write file if you forgot to give it sudo permission +map sudo :w !sudo tee % +