Tag Info

Hot answers tagged


This also works well: :w !sudo sh -c "cat > %" This is inspired by the comment of @Nathan Long in this answer. NOTICE: " must be used instead of ' because we want % to be expanded before passing to shell.

Only top voted, non community-wiki answers of a minimum length are eligible