From 2b6d022c9d126d5fc2b840401ee30674a31bdada Mon Sep 17 00:00:00 2001 From: Abraham Toriz Cruz Date: Thu, 10 Nov 2016 04:17:20 -0600 Subject: useful tip for saving a buffer as sudo (#2405) --- vim.html.markdown | 1 + 1 file changed, 1 insertion(+) diff --git a/vim.html.markdown b/vim.html.markdown index edbc3da7..96cc20cb 100644 --- a/vim.html.markdown +++ b/vim.html.markdown @@ -156,6 +156,7 @@ A few important examples of 'Verbs', 'Modifiers', and 'Nouns': :later 15m # Reverse above command ddp # Swap position of consecutive lines, dd then p . # Repeat previous action + :w !sudo tee % # Save the current file as root ``` ## Macros -- cgit v1.2.3