mirror of
https://github.com/gotbletu/shownotes
synced 2024-11-15 00:12:53 +00:00
16 lines
289 B
Plaintext
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>
|
|
|