Re: Vim stops

2013-07-09 Fir de Conversatie John Little
Marcin said:
 I am not sure why it get's three Z though.  I'd expected to see only two of 
 them.

The last z eats the first Z, if there are an odd number of z's, as z is a 
prefix to two key commands. 


Regards, John Little 

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
vim_dev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




vim stops

2013-07-08 Fir de Conversatie Dimitar DIMITROV
Hi, running the latest version of vim (from mercurial) I experience the 
following weird behaviour:

1. command /usr/local/bin/vim -nNX -u NONE
2.  shift (hold on to z then simultaneosly press shift)
Vim stops

Ran it under valgrind but it reports: definitely lost: 0 bytes in 0 blocks

Version:
VIM - Vi IMproved 7.4a BETA (2013 Jul 6, compiled Jul  8 2013 13:51:44)
Included patches: 1-2

 
Dimitar


---
GPG Key: 2048R/160C6FA8 2012-10-11 Dimitar Dimitrov (kurkale6ka) 
mitk...@yahoo.fr

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
vim_dev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: vim stops

2013-07-08 Fir de Conversatie tooth pik
On Mon, Jul 08, 2013 at 02:05:19PM +0100, Dimitar DIMITROV wrote:
 Hi, running the latest version of vim (from mercurial) I experience the 
 following weird behaviour:

 1. command /usr/local/bin/vim -nNX -u NONE
 2.  shift (hold on to z then simultaneosly press shift)
 Vim stops

it's a feature -- ZZ is a quit command -- see

:h ZZ

-- 
_|_ _  __|_|_ ._ o|  
 |_(_)(_)|_| ||_)|| 
  |  

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
vim_dev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: vim stops

2013-07-08 Fir de Conversatie Dimitar DIMITROV
No, I didn't right ZZ but zz. It's different :)

 
Dimitar


---
GPG Key: 2048R/160C6FA8 2012-10-11 Dimitar Dimitrov (kurkale6ka) 
mitk...@yahoo.fr



 De : tooth pik toothp...@gmail.com
À : vim_dev@googlegroups.com 
Envoyé le : Lundi 8 juillet 2013 14h36
Objet : Re: vim stops
 

On Mon, Jul 08, 2013 at 02:05:19PM +0100, Dimitar DIMITROV wrote:
 Hi, running the latest version of vim (from mercurial) I experience the 
 following weird behaviour:

 1. command /usr/local/bin/vim -nNX -u NONE
 2.  shift (hold on to z then simultaneosly press shift)
 Vim stops

it's a feature -- ZZ is a quit command -- see

    :h ZZ

-- 
_|_ _  __|_|_ ._ o|  
|_(_)(_)|_| ||_)|| 
              |      

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
vim_dev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
vim_dev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: vim stops

2013-07-08 Fir de Conversatie Manuel Ortega
 1. command /usr/local/bin/vim -nNX -u NONE


Bram,

I looked at this and didn't remember offhand what the '-X' flag did.  No
wonder: 'vim --help' has no entry for that flag.  But ':h startup-options'
*does* say what the flag does.  Please update the output of 'vim --help'.

I shall now hunt for other discrepancies between 'vim --help' and ':h
startup-options'.

-Manny

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
vim_dev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: vim stops

2013-07-08 Fir de Conversatie tooth pik
On Mon, Jul 08, 2013 at 02:41:11PM +0100, Dimitar DIMITROV wrote:
 No, I didn't right ZZ but zz. It's different :)

and what about then simultaneously press shift?  or maybe you have a
keyboard that produces other than Z for SHIFT-z?

and please don't top-post

-- 
_|_ _  __|_|_ ._ o|  
 |_(_)(_)|_| ||_)|| 
  |  

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
vim_dev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Vim stops

2013-07-08 Fir de Conversatie Dimitar DIMITROV
Resending this as apparently it wasn't clear, hope it is now

Hi, running the latest version of vim (from mercurial) I experience the 
following weird behaviour:

1. command /usr/local/bin/vim -nNX -u NONE
2.  shift
    explanation: press z and hold for a few seconds
   now while pressing z, press also shift
   so it results in +shift NOT ZZ or shift+z

Vim stops

Ran it under valgrind but it reports: definitely lost: 0 bytes in 0 blocks

Version:
VIM - Vi IMproved 7.4a BETA (2013 Jul 6, compiled Jul  8 2013 13:51:44)
Included patches: 1-2
 
Dimitar


---
GPG Key: 2048R/160C6FA8 2012-10-11 Dimitar Dimitrov (kurkale6ka) 
mitk...@yahoo.fr

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
vim_dev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: vim stops

2013-07-08 Fir de Conversatie Bram Moolenaar

Manuel Ortega wrote:

  1. command /usr/local/bin/vim -nNX -u NONE
 
 Bram,
 
 I looked at this and didn't remember offhand what the '-X' flag did.  No
 wonder: 'vim --help' has no entry for that flag.  But ':h startup-options'
 *does* say what the flag does.  Please update the output of 'vim --help'.
 
 I shall now hunt for other discrepancies between 'vim --help' and ':h
 startup-options'.

% vim --help | grep X
   -X   Do not connect to X server

Perhaps your Vim was not compiled with X11 support?

-- 
Snoring is prohibited unless all bedroom windows are closed and securely
locked.
[real standing law in Massachusetts, United States of America]

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
vim_dev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Vim stops

2013-07-08 Fir de Conversatie Nikolay Pavlov
On Jul 8, 2013 7:00 PM, Dimitar DIMITROV mitk...@yahoo.fr wrote:

 Resending this as apparently it wasn't clear, hope it is now

 Hi, running the latest version of vim (from mercurial) I experience the
following weird behaviour:

 1. command /usr/local/bin/vim -nNX -u NONE
 2.  shift
 explanation: press z and hold for a few seconds
now while pressing z, press also shift
so it results in +shift NOT ZZ or
shift+z
 Vim stops

Now repeat this in shell and post result here. I am absolutely sure you
will see ZZ: it is what I see. If you see this bug your terminal emulator,
X11 or whatever authors, but not us: quit when ZZ was received is an
expected behavior and generating user input is not vim business, vim only
consumes input generated by terminal emulator which in turn receives it
from X server which in turn receives it from kernel (and it receives from
hardware).

Also what do you expect to happen if not vim exit?

 Ran it under valgrind but it reports: definitely lost: 0 bytes in 0 blocks

 Version:
 VIM - Vi IMproved 7.4a BETA (2013 Jul 6, compiled Jul  8 2013 13:51:44)
 Included patches: 1-2

 Dimitar

 ---
 GPG Key: 2048R/160C6FA8 2012-10-11 Dimitar Dimitrov (kurkale6ka) 
mitk...@yahoo.fr

 --
 --
 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

 ---
 You received this message because you are subscribed to the Google Groups
vim_dev group.
 To unsubscribe from this group and stop receiving emails from it, send an
email to vim_dev+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
vim_dev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: vim stops

2013-07-08 Fir de Conversatie Charles Campbell

Manuel Ortega wrote:


1. command /usr/local/bin/vim -nNX -u NONE


Bram,

I looked at this and didn't remember offhand what the '-X' flag did. 
 No wonder: 'vim --help' has no entry for that flag.  But ':h 
startup-options' *does* say what the flag does.  Please update the 
output of 'vim --help'.


I shall now hunt for other discrepancies between 'vim --help' and ':h 
startup-options'.


I think you wanted a new topic; irregardless, you appeared to have 
Replied to an unrelated topic (Re: vim stops).  A better approach 
with Seamonkey, for example, is (typically) to right click on the To 
field and then to compose mail to.  Avoids losing your new topic in an 
unrelated thread.  You should investigate to find out what works best 
with your email agent.


Regards,
Chip Campbell

--
--
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

--- 
You received this message because you are subscribed to the Google Groups vim_dev group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Vim stops

2013-07-08 Fir de Conversatie Tony Mechelynck

On 08/07/13 17:35, Nikolay Pavlov wrote:


On Jul 8, 2013 7:00 PM, Dimitar DIMITROV mitk...@yahoo.fr
mailto:mitk...@yahoo.fr wrote:
 
  Resending this as apparently it wasn't clear, hope it is now
 
  Hi, running the latest version of vim (from mercurial) I experience
the following weird behaviour:
 
  1. command /usr/local/bin/vim -nNX -u NONE
  2.  shift
  explanation: press z and hold for a few seconds
 now while pressing z, press also shift
 so it results in +shift NOT ZZ or
shift+z
  Vim stops

Now repeat this in shell and post result here. I am absolutely sure you
will see ZZ: it is what I see. If you see this bug your terminal
emulator, X11 or whatever authors, but not us: quit when ZZ was received
is an expected behavior and generating user input is not vim business,
vim only consumes input generated by terminal emulator which in turn
receives it from X server which in turn receives it from kernel (and it
receives from hardware).

Also what do you expect to happen if not vim exit?



I did the experiment, and somehow the result is different in konsole and 
in the Linux (text) console: Let's say I press and hold z, and while 
holding z I press and release Shift.


in konsole:
zzzzz

in Linux console (i.e., the Ctrl-Alt-Fn terminal where 1 = n = 6)
zz
(i.e. the string of letters stops as soon as I hit Shift).

Maybe Vim (in an X11 terminal emulator) displays the ZZ (it may deped on 
the 'showcmd' setting) but then Vim exits so fast that you don't have 
time to see it. See :help ZZ.


And the fact that you start Vim with -X doesn't mean that you aren't 
running under X11, it's just that in that case Vim doesn't try to use 
the special X11 capabilities (such as the clipboard, and the 
client-server feature), it still runs in a terminal emulator and _that 
terminal_ (xterm, konsole, mlterm, gnome-terminal, etc.) does its input 
and output as an X11 GUI, of which Vim has no knowledge.


It is always possible to have ZZ do nothing: in 'nocompatible' mode,

:map ZZ Nop

will do it.


Best regards,
Tony.
--
You too can wear a nose mitten.

--
--
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

--- 
You received this message because you are subscribed to the Google Groups vim_dev group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Vim stops

2013-07-08 Fir de Conversatie Marcin Szamotulski
On 19:07 Mon 08 Jul , Tony Mechelynck wrote:
 On 08/07/13 17:35, Nikolay Pavlov wrote:
 
  On Jul 8, 2013 7:00 PM, Dimitar DIMITROV mitk...@yahoo.fr
  mailto:mitk...@yahoo.fr wrote:
   
Resending this as apparently it wasn't clear, hope it is now
   
Hi, running the latest version of vim (from mercurial) I experience
  the following weird behaviour:
   
1. command /usr/local/bin/vim -nNX -u NONE
2.  shift
explanation: press z and hold for a few seconds
   now while pressing z, press also shift
   so it results in +shift NOT ZZ or
  shift+z
Vim stops
 
  Now repeat this in shell and post result here. I am absolutely sure you
  will see ZZ: it is what I see. If you see this bug your terminal
  emulator, X11 or whatever authors, but not us: quit when ZZ was received
  is an expected behavior and generating user input is not vim business,
  vim only consumes input generated by terminal emulator which in turn
  receives it from X server which in turn receives it from kernel (and it
  receives from hardware).
 
  Also what do you expect to happen if not vim exit?
 
 
 I did the experiment, and somehow the result is different in konsole and 
 in the Linux (text) console: Let's say I press and hold z, and while 
 holding z I press and release Shift.
 
 in konsole:
 zzzzz
 
 in Linux console (i.e., the Ctrl-Alt-Fn terminal where 1 = n = 6)
 zz
 (i.e. the string of letters stops as soon as I hit Shift).
 
 Maybe Vim (in an X11 terminal emulator) displays the ZZ (it may deped on 
 the 'showcmd' setting) but then Vim exits so fast that you don't have 
 time to see it. See :help ZZ.
 
 And the fact that you start Vim with -X doesn't mean that you aren't 
 running under X11, it's just that in that case Vim doesn't try to use 
 the special X11 capabilities (such as the clipboard, and the 
 client-server feature), it still runs in a terminal emulator and _that 
 terminal_ (xterm, konsole, mlterm, gnome-terminal, etc.) does its input 
 and output as an X11 GUI, of which Vim has no knowledge.
 
 It is always possible to have ZZ do nothing: in 'nocompatible' mode,
 
   :map ZZ Nop
 
 will do it.
 
 
 Best regards,
 Tony.
 -- 
 You too can wear a nose mitten.
 
 -- 
 -- 
 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
 
 --- 
 You received this message because you are subscribed to the Google Groups 
 vim_dev group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to vim_dev+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.
 

Another way of checking what is going on is to use the -W switch which
will record keys that vim is recieving:

vim -XW /tmp/keys
# do the experiment
cat /tmp/keys
ZZZ

So ineed vim is getting ZZ from the terminal emulator.
I am not sure why it get's three Z though.  I'd expected to see only two
of them.

Regards,
Marcin

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
vim_dev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.