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 online protection

Rails professionals since 2007

Our laser focus on a single technology has made us a leader in this space. Need help?

  • We build a solid first version of your product
  • We train your development team
  • We rescue your project in trouble
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)