Read more

Vim read-only option

Emanuel
April 11, 2017Software engineer at makandra GmbH

You can start vim with a read-only option. This prevents making accidentally changes in files you don't want to touch.

view /file/to/open
Illustration money motivation

Opscomplete powered by makandra brand

Save money by migrating from AWS to our fully managed hosting in Germany.

  • Trusted by over 100 customers
  • Ready to use with Ruby, Node.js, PHP
  • Proactive management by operations experts
Read more Show archive.org snapshot

view is actually vim.


Use case

You have opened many similar files and accidentally type :wq in the wrong one. Did you make changes? Which changes you made? When do you notice you edited the wrong file?

Posted by Emanuel to makandra dev (2017-04-11 15:42)