Commits

John Guidry committed 1edf35a

Add command in case I forgot to sudo

  • Participants
  • Parent commits 150fc1b

Comments (0)

Files changed (1)

 " Hide search highlighting
 map <Leader>h :set invhls <CR>
 
+" Write buffer out with sudo
+"   http://stackoverflow.com/a/96492/623846
+if executable('sudo') && executable('tee')
+  cmap w!! %!sudo tee > /dev/null %
+endif
+
 "
 " Autocommands
 "