5 ms·
Vim ships with a command called `view` that will start it in read-only mode, and makes it very much a viewer — not just an editor.
by robmil 12y ago
Vim ships with a command called `view` that will start it in read-only mode, and makes it very much a viewer — not just an editor.
- dredmorbius 12y agoTrue, and I like using this for syntax-colored views of files. But it's got an annoying tendency to switch to edit mode with very little fuss. Sometimes I want a viewer to just be a viewer. Speaking of which: are there any Linux/Unix viewers that do have generalized syntax highlighting support?
- sukilot 12y agochmod :)
- dredmorbius 12y agoIt took me way too long to grok that.
- notfoss 12y agoYou can give vimpager a try. It even supports vimrc. But I have felt it to be considerably slower than less.