F*ck

4 Points

Nic West Nic West

6 years ago

for when you forget how to !sudo tee %

command! -bang Fuck if "<bang>" == "!" |
      \ execute 'w !sudo tee > /dev/null %' |
      \ echohl WarningMsg |
      \ echo 'PEWPEW! SUDO!' |
      \ echohl None |
      \ endif

Martínez Ortiz Saúl Axel

Martínez Ortiz Saúl Axel 3 years ago

What the F*uck?