function Sudowrite() execute 'w !sudo tee "%"' endfunction nnoremap w :call Sudowrite()L function MakeFileExecutable() execute '! chmod +x "%"' endfunction nnoremap x :call MakeFileExecutable()L " ( + e + RC_PREFIX) for edit rc nnoremap ev :tabedit $WRYNVIMRC:NERDTreeToggle nnoremap sv :source $MYVIMRC nnoremap ez :tabedit $ZSHRC