To read from stdin use
<other commands> | gvim -R -
-R instructs Vim to read the file in read-only mode.- is a utility convention that means open from stdin. (See Guideline 13 of Utility Syntax Guidelines from the Posix standard.)Source: http://stackoverflow.com/questions/230718/redirection-and-vim
0 comments:
Post a Comment