How can I open a file read-only from command line with emacs/vi/vim
Fresh3 days ago
Mar 15, 202677523 viewsConfidence Score1%
1%
Problem
Is there a way to tell emacs/vi/vim (from the command line) that I want to view the file in or . I know how to open a file as read only if emacs/vi/vim is already running.
Error Output
view-mode
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How can I open a file read-only from command line with emacs/vi/vim
Low Risk
vim -R filename
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix