Skip to main content
Rollback to Revision 10
Source Link
Zombo
  • 1
  • 5
  • 18

Starting with Vim 8.0.1308Vim 8.0.1308 (Nov 2017), you can use the --not-a-term"--not-a-term" option to suppress this message; for example with quit with "quit":

$ echo hello | vi - --not-a-term -esc '%p|q!'
hello

Or with exit"exit":

$ echo hello | vi - --not-a-term -esc 'x!/dev/stdout'
hello

http://github.com/vim/vim/issues/1552

Starting with Vim 8.0.1308 (Nov 2017), you can use the --not-a-term option to suppress this message; for example with quit:

$ echo hello | vi - --not-a-term -esc '%p|q!'
hello

Or with exit:

$ echo hello | vi - --not-a-term -esc 'x!/dev/stdout'
hello

Starting with Vim 8.0.1308 (Nov 2017), you can use the "--not-a-term" option with "quit":

$ echo hello | vi - --not-a-term -esc '%p|q!'
hello

Or with "exit":

$ echo hello | vi - --not-a-term -esc 'x!/dev/stdout'
hello

http://github.com/vim/vim/issues/1552

Inline link, clarify working slightly
Source Link
Martin Tournoij
  • 63.3k
  • 26
  • 199
  • 274

Starting with Vim 8.0.1308Vim 8.0.1308 (Nov 2017), you can use the "--not-a-term"--not-a-term option with "quit" to suppress this message; for example with quit:

$ echo hello | vi - --not-a-term -esc '%p|q!'
hello

Or with "exit"exit:

$ echo hello | vi - --not-a-term -esc 'x!/dev/stdout'
hello

http://github.com/vim/vim/issues/1552

Starting with Vim 8.0.1308 (Nov 2017), you can use the "--not-a-term" option with "quit":

$ echo hello | vi - --not-a-term -esc '%p|q!'
hello

Or with "exit":

$ echo hello | vi - --not-a-term -esc 'x!/dev/stdout'
hello

http://github.com/vim/vim/issues/1552

Starting with Vim 8.0.1308 (Nov 2017), you can use the --not-a-term option to suppress this message; for example with quit:

$ echo hello | vi - --not-a-term -esc '%p|q!'
hello

Or with exit:

$ echo hello | vi - --not-a-term -esc 'x!/dev/stdout'
hello
deleted 133 characters in body
Source Link
Zombo
  • 1
  • 5
  • 18

MCVEStarting with Vim 8.0.1308 (Nov 2017), you can use the "--not-a-term" option with "quit":quit

$ echo hello | vi - --not-a-term -esc '%p|q!'
Vim: Reading from stdin...
hello

FixOr with "exit":quit

$ echo hello | vi -esc '%p|q' /dev/stdin
hello

MCVE with :exit

$ echo hello | vi - -esc 'x!/dev/stdout'
Vim: Reading from stdin...
hello

Fix with :exit

$ echo hello | vi not-a-term -esc 'x!/dev/stderr' 2>&1 >/dev/nullstdout'
hello

http://github.com/vim/vim/issues/1552

MCVE with :quit

$ echo hello | vi - -esc '%p|q!'
Vim: Reading from stdin...
hello

Fix with :quit

$ echo hello | vi -esc '%p|q' /dev/stdin
hello

MCVE with :exit

$ echo hello | vi - -esc 'x!/dev/stdout'
Vim: Reading from stdin...
hello

Fix with :exit

$ echo hello | vi - -esc 'x!/dev/stderr' 2>&1 >/dev/null
hello

http://github.com/vim/vim/issues/1552

Starting with Vim 8.0.1308 (Nov 2017), you can use the "--not-a-term" option with "quit":

$ echo hello | vi - --not-a-term -esc '%p|q!'
hello

Or with "exit":

$ echo hello | vi - --not-a-term -esc 'x!/dev/stdout'
hello

http://github.com/vim/vim/issues/1552

added 41 characters in body
Source Link
Zombo
  • 1
  • 5
  • 18
Loading
added 161 characters in body
Source Link
Zombo
  • 1
  • 5
  • 18
Loading
deleted 64 characters in body
Source Link
Zombo
  • 1
  • 5
  • 18
Loading
deleted 54 characters in body
Source Link
Zombo
  • 1
  • 5
  • 18
Loading
added 52 characters in body
Source Link
Zombo
  • 1
  • 5
  • 18
Loading
deleted 24 characters in body
Source Link
Zombo
  • 1
  • 5
  • 18
Loading
deleted 76 characters in body
Source Link
Zombo
  • 1
  • 5
  • 18
Loading
added 115 characters in body
Source Link
Zombo
  • 1
  • 5
  • 18
Loading
Source Link
Zombo
  • 1
  • 5
  • 18
Loading