[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] How to set the terminal to vim?
From: |
toothpik |
Subject: |
Re: [Help-bash] How to set the terminal to vim? |
Date: |
Wed, 3 Jun 2015 10:06:18 -0500 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Wed, Jun 03, 2015 at 09:51:08AM -0500, Eduardo A. Bustamante López wrote:
> If you're certain that your script will be run from a terminal, you can use:
> vim </dev/tty
> And so on.
the most common way for vim to read stdin is to reorder so your process
is first, using the '-' option of vim:
{someprocess} | vim -
in
:help starting
vim describes how the '-' option is used to fill the buffer from stdin
-- does this help?
--
_|_ _ __|_|_ ._ o|
|_(_)(_)|_| ||_)||<
|