Some tips, better use of Vim

Directory is not exist?

Command Control + Z, run vim background, and user command mkdir to create this directory

No permission to create this file, or edit it?

:w !sudo tee % >/dev/null

And then, your need to choice Ok or Load, after your choice, the file mode will be readonly. don't feel fear, your can use command above

0 个评论