Including </dev/tty> and completing from header will cause freezing up

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Including </dev/tty> and completing from header will cause freezing up

tyru-2
This problem is occurred only on console version.

    :setf c

and write this to buffer

    #include </dev/tty>

and complete from include header (<C-x><C-i>) will cause vim to freeze.

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Including </dev/tty> and completing from header will cause freezing up

Christian J. Robinson-2
On Sat, 10 Jul 2010, tyru wrote:

> #include </dev/tty>

Why are you doing this?  I can't imagine it's a good idea in any
circumstance.

It's hardly surprising that Vim freezes up, considering you're
essentially causing Vim to try to treat the current TTY's input stream
like a normal file for completion type purposes, while at the same
time Vim also is trying to use the TTY for user input.

In other words, this is not a Vim bug, just a Unix user shooting
himself in the foot, which Unix doesn't really try to prevent.

- Christian

--
Christian J. Robinson <[hidden email]>

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Loading...