shownotes-w3m-rice/vim_sudo_permission.txt
2014-03-01 16:41:47 -08:00

16 lines
289 B
Plaintext

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 <leader>sudo :w !sudo tee % <CR><CR>