Re: Problems with star (*) mappings in vim 7.4 (with MS Windows)
On Monday, June 2, 2014 12:59:36 PM UTC-3, Ben Fritz wrote: > On Friday, May 30, 2014 9:09:19 AM UTC-5, David Fishburn wrote: > > > On Fri, May 30, 2014 at 9:46 AM, Christian Brabandt > > wrote: > > > > > > Hi Pedro! > > > > > > > > > > > > On So, 25 Mai 2014, Pedro Ferrari wrote: > > > > > > > > > > > > > I believe that the problem (bug?) is that the * (star) key cannot be > > > > > > > remapped: if I start vim with "vim -N -u NONE" (Vim 7.4 with patches > > > > > > > 1-274) and run the command "noremap * :echo "star"" and press *, > > > > > > > vim tries to perform a search. > > > > > > > > > > > > I can't reproduce this. Is this gvim/vim and on what Operating system? > > > > > > > > > I tried this on Windows 7 (64) running 32-bit Vim. > > > > > > > > > > > > :ver > > > VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 13 2014 20:37:47) > > > > > > MS-Windows 32-bit GUI version with OLE support > > > Included patches: 1-258 > > > > > > > > > When I press *, I get "star" written, no search performed. > > > > > > > > > David > > > > See my brief investigation a few months ago. Vim acted as expected when > running in "nocompatible" mode but I reproduced the issue when running in > "compatible" mode. I.e. "gvim -N -u NONE -i NONE" worked as expected but > "gvim -u NONE -i NONE" performed a search then beeped at me. > > > > Did you try to reproduce in nocompatible mode or compatible mode? Mapping instead of * solved the problem. Really strange since I do not use the keypad multiply key. -- -- 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/d/optout.
Re: Problems with star (*) mappings in vim 7.4 (with MS Windows)
On Friday, May 30, 2014 9:09:19 AM UTC-5, David Fishburn wrote: > On Fri, May 30, 2014 at 9:46 AM, Christian Brabandt > wrote: > > Hi Pedro! > > > > On So, 25 Mai 2014, Pedro Ferrari wrote: > > > > > I believe that the problem (bug?) is that the * (star) key cannot be > > > remapped: if I start vim with "vim -N -u NONE" (Vim 7.4 with patches > > > 1-274) and run the command "noremap * :echo "star"" and press *, > > > vim tries to perform a search. > > > > I can't reproduce this. Is this gvim/vim and on what Operating system? > > > I tried this on Windows 7 (64) running 32-bit Vim. > > > > :ver > VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 13 2014 20:37:47) > > MS-Windows 32-bit GUI version with OLE support > Included patches: 1-258 > > > When I press *, I get "star" written, no search performed. > > > David See my brief investigation a few months ago. Vim acted as expected when running in "nocompatible" mode but I reproduced the issue when running in "compatible" mode. I.e. "gvim -N -u NONE -i NONE" worked as expected but "gvim -u NONE -i NONE" performed a search then beeped at me. Did you try to reproduce in nocompatible mode or compatible mode? -- -- 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/d/optout.
Re: Problems with star (*) mappings in vim 7.4 (with MS Windows)
On Saturday, May 31, 2014 10:29:53 AM UTC-3, Christian Brabandt wrote: > Hi Pedro! > > > > On Fr, 30 Mai 2014, Pedro Ferrari wrote: > > > Christian, thanks again for the help. I don't have set paste set. > > > > Then I can't imagine, why it wouldn't work for you. > > > > Best, > > Christian > > -- > > Will vom Krieg leben, wird ihm wohl müssen, auch etwas geben. > > -- Bert Brecht Thanks Christian. If I ever find what's going on, I''ll report it here. Thanks once again for the testing. Regards, Pedro -- -- 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/d/optout.
Re: Problems with star (*) mappings in vim 7.4 (with MS Windows)
Hi Pedro! On Fr, 30 Mai 2014, Pedro Ferrari wrote: > Christian, thanks again for the help. I don't have set paste set. Then I can't imagine, why it wouldn't work for you. Best, Christian -- Will vom Krieg leben, wird ihm wohl müssen, auch etwas geben. -- Bert Brecht -- -- 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/d/optout.
Re: Problems with star (*) mappings in vim 7.4 (with MS Windows)
On Friday, May 30, 2014 3:01:16 PM UTC-3, Christian Brabandt wrote: > On Fr, 30 Mai 2014, Pedro Ferrari wrote: > > > > > Hi David and Christian! Thank you for looking into this. I'm using: > > > > > > VIM - Vi IMproved 7.4 (2013 Aug 10, compiled May 2014 21:13:41) > > > MS-Windows 64-bit console version Included patches: 1-274 > > > > > > which you can get here: http://files.kaoriya.net/vim/ . I also tried > > > it with GUI version and it doesn't work either. > > > > > > This is definitely strange. I have no idea why it is not working for > > > me. When I press * instead of echoing "star" I get "ERROR 348: No > > > string under the cursor" > > > > > > It is something that has been bothering me for a long time and thought > > > that maybe someone else could reproduce it but that doesn't seem to be > > > the case. > > > > Do you possibly have set paste set? > > > > regards, > > Christian > > -- > > Es muß übrigens darauf hingewiesen werden, daß die Gesellschaft, die > > os heftig bestrebt ist, die Rechte des Embryos zu verteidigen, sich um > > die Kinder nicht kümmert, sowie sie auf der Welt sind. > > -- Simone de Beauvoir, Das andere Geschlecht Christian, thanks again for the help. I don't have set paste set. Regards, Pedro -- -- 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/d/optout.
Re: Problems with star (*) mappings in vim 7.4 (with MS Windows)
On Fr, 30 Mai 2014, Pedro Ferrari wrote: > Hi David and Christian! Thank you for looking into this. I'm using: > > VIM - Vi IMproved 7.4 (2013 Aug 10, compiled May 2014 21:13:41) > MS-Windows 64-bit console version Included patches: 1-274 > > which you can get here: http://files.kaoriya.net/vim/ . I also tried > it with GUI version and it doesn't work either. > > This is definitely strange. I have no idea why it is not working for > me. When I press * instead of echoing "star" I get "ERROR 348: No > string under the cursor" > > It is something that has been bothering me for a long time and thought > that maybe someone else could reproduce it but that doesn't seem to be > the case. Do you possibly have set paste set? regards, Christian -- Es muß übrigens darauf hingewiesen werden, daß die Gesellschaft, die os heftig bestrebt ist, die Rechte des Embryos zu verteidigen, sich um die Kinder nicht kümmert, sowie sie auf der Welt sind. -- Simone de Beauvoir, Das andere Geschlecht -- -- 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/d/optout.
Re: Problems with star (*) mappings in vim 7.4 (with MS Windows)
On Friday, May 30, 2014 12:01:09 PM UTC-3, Christian Brabandt wrote: > Hi David! > > > > On Fr, 30 Mai 2014, David Fishburn wrote: > > > > > When I press *, I get "star" written, no search performed. > > > > So no problem for you, since you can remap *. Anybody else has that > > problem? > > > > Best, > > Christian > > -- > > Die Menschen neigen zur falschen Auffassung, daß, da sich alle unsere > > mechanischen Apparate so flink vorwärts bewegen, auch das Denken > > schneller vor sich geht. > > -- Christopher D. Morley Hi David and Christian! Thank you for looking into this. I'm using: VIM - Vi IMproved 7.4 (2013 Aug 10, compiled May 2014 21:13:41) MS-Windows 64-bit console version Included patches: 1-274 which you can get here: http://files.kaoriya.net/vim/ . I also tried it with GUI version and it doesn't work either. This is definitely strange. I have no idea why it is not working for me. When I press * instead of echoing "star" I get "ERROR 348: No string under the cursor" It is something that has been bothering me for a long time and thought that maybe someone else could reproduce it but that doesn't seem to be the case. -- -- 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/d/optout.
Re: Problems with star (*) mappings in vim 7.4 (with MS Windows)
Hi David! On Fr, 30 Mai 2014, David Fishburn wrote: > When I press *, I get "star" written, no search performed. So no problem for you, since you can remap *. Anybody else has that problem? Best, Christian -- Die Menschen neigen zur falschen Auffassung, daß, da sich alle unsere mechanischen Apparate so flink vorwärts bewegen, auch das Denken schneller vor sich geht. -- Christopher D. Morley -- -- 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/d/optout.
Re: Problems with star (*) mappings in vim 7.4 (with MS Windows)
On Fri, May 30, 2014 at 9:46 AM, Christian Brabandt wrote: > Hi Pedro! > > On So, 25 Mai 2014, Pedro Ferrari wrote: > > > I believe that the problem (bug?) is that the * (star) key cannot be > > remapped: if I start vim with "vim -N -u NONE" (Vim 7.4 with patches > > 1-274) and run the command "noremap * :echo "star"" and press *, > > vim tries to perform a search. > > I can't reproduce this. Is this gvim/vim and on what Operating system? > > I tried this on Windows 7 (64) running 32-bit Vim. :ver VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 13 2014 20:37:47) MS-Windows 32-bit GUI version with OLE support Included patches: 1-258 When I press *, I get "star" written, no search performed. David -- -- 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/d/optout.
Re: Problems with star (*) mappings in vim 7.4 (with MS Windows)
Hi Pedro! On So, 25 Mai 2014, Pedro Ferrari wrote: > I believe that the problem (bug?) is that the * (star) key cannot be > remapped: if I start vim with "vim -N -u NONE" (Vim 7.4 with patches > 1-274) and run the command "noremap * :echo "star"" and press *, > vim tries to perform a search. I can't reproduce this. Is this gvim/vim and on what Operating system? Best, Christian -- Umweltschutztip: Fahrkarten mehrmals benutzen. -- -- 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/d/optout.
Re: Problems with star (*) mappings in vim 7.4 (with MS Windows)
On Saturday, December 28, 2013 11:25:06 AM UTC-3, Pedro Ferrari wrote: > On Tuesday, December 24, 2013 8:22:53 PM UTC-3, Ben Fritz wrote: > > On Tuesday, December 24, 2013 4:54:08 PM UTC-6, Pedro Ferrari wrote: > > > Along the way I realized that if try the following mappings > > > > > > nnoremap * * > > > nnoremap # # > > > > > > then once again: (i) in gVim the # mapping works fine and the * mapping > > > doesn't and (ii) in console vim none of the mappings work. > > > > > > I don't know if this a bug or a problem with my setup (I'm relatively new > > > to Vim) but any help will be greatly appreciated. > > > > > > Thanks! > > > > If I use vim -N -u NONE -i NONE then these two mappings work fine. > > > > If I drop the -N and just do vim -u NONE -i NONE then Vim searches for the > > word under the cursor and then beeps at me. > > > > Note that without the -N, Vim is running in "compatible" mode and therefore > > tries to behave like plain vi. With the -N it is in "nocompatible" mode. > > > > I don't know whether is actually supposed to fail in compatible mode, > > but I do notice in the help for CTRL-O that it says "not in vi". > > > > I wonder if this is the cause, and whether something similar is going on in > > your actual mapping. > > > > ...oh nevermind, I guess you do a "set nocp" right in the beginning before > > you source the script. Time to investigate further... > > Thanks Ben for your reply. I indeed do a set nocp immediately after starting > Vim. I tried doing vim -u NONE and then both mappings work fine (i don't know > if this is because I updated vim to 7.4 patch 92 recently or what but now > they seem to work) However if I do gvim -u NONE (and set nocp) then the star > (*) mapping doesn't work whereas the hash (#) mapping does work. I use gVim > rather than console vim so I would really like this mapping to work under GUI > vim. Once again thanks for your help. I believe that the problem (bug?) is that the * (star) key cannot be remapped: if I start vim with "vim -N -u NONE" (Vim 7.4 with patches 1-274) and run the command "noremap * :echo "star"" and press *, vim tries to perform a search. -- -- 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/d/optout.
Re: Problems with star (*) mappings in vim 7.4 (with MS Windows)
On Tuesday, December 24, 2013 8:22:53 PM UTC-3, Ben Fritz wrote: > On Tuesday, December 24, 2013 4:54:08 PM UTC-6, Pedro Ferrari wrote: > > Along the way I realized that if try the following mappings > > > > nnoremap * * > > nnoremap # # > > > > then once again: (i) in gVim the # mapping works fine and the * mapping > > doesn't and (ii) in console vim none of the mappings work. > > > > I don't know if this a bug or a problem with my setup (I'm relatively new > > to Vim) but any help will be greatly appreciated. > > > > Thanks! > > If I use vim -N -u NONE -i NONE then these two mappings work fine. > > If I drop the -N and just do vim -u NONE -i NONE then Vim searches for the > word under the cursor and then beeps at me. > > Note that without the -N, Vim is running in "compatible" mode and therefore > tries to behave like plain vi. With the -N it is in "nocompatible" mode. > > I don't know whether is actually supposed to fail in compatible mode, > but I do notice in the help for CTRL-O that it says "not in vi". > > I wonder if this is the cause, and whether something similar is going on in > your actual mapping. > > ...oh nevermind, I guess you do a "set nocp" right in the beginning before > you source the script. Time to investigate further... Thanks Ben for your reply. I indeed do a set nocp immediately after starting Vim. I tried doing vim -u NONE and then both mappings work fine (i don't know if this is because I updated vim to 7.4 patch 92 recently or what but now they seem to work) However if I do gvim -u NONE (and set nocp) then the star (*) mapping doesn't work whereas the hash (#) mapping does work. I use gVim rather than console vim so I would really like this mapping to work under GUI vim. Once again thanks for your help. -- -- 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: Problems with star (*) mappings in vim 7.4 (with MS Windows)
On Tuesday, December 24, 2013 4:54:08 PM UTC-6, Pedro Ferrari wrote: > Along the way I realized that if try the following mappings > > nnoremap * * > nnoremap # # > > then once again: (i) in gVim the # mapping works fine and the * mapping > doesn't and (ii) in console vim none of the mappings work. > > I don't know if this a bug or a problem with my setup (I'm relatively new to > Vim) but any help will be greatly appreciated. > > Thanks! If I use vim -N -u NONE -i NONE then these two mappings work fine. If I drop the -N and just do vim -u NONE -i NONE then Vim searches for the word under the cursor and then beeps at me. Note that without the -N, Vim is running in "compatible" mode and therefore tries to behave like plain vi. With the -N it is in "nocompatible" mode. I don't know whether is actually supposed to fail in compatible mode, but I do notice in the help for CTRL-O that it says "not in vi". I wonder if this is the cause, and whether something similar is going on in your actual mapping. ...oh nevermind, I guess you do a "set nocp" right in the beginning before you source the script. Time to investigate further... -- -- 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.