1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

GCPのエラーメモ - vimで書き込むときの権限エラー「Cant't open file for writing」回避

Last updated at Posted at 2022-09-14

68747470733a2f2f71696974612d696d6167652d73746f72652e73332e61702d6e6f727468656173742d312e616d617a6f6e6177732e636f6d2f302f3532313831302f36623533633238312d643331382d333932312d663938612d3130346130386139653035302e706e67.png
Cant't open file for writingとなる場合に下記を入力している。けど他に方法あるかな?
:w !sudo tee %


→ コメントより

そもそも開くときにsudo viで開くべきだと思います。

@bow_arrow

1
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?