When I use the :wn" command, before moving to the next file I see a notification like: "file1" 137L, 5359C [w] "file2" 137L, 5359C Press ENTER or type command to continue Obviously this requires a <CR> to advance to the next file. Is there a way to suppress this notice and simply move to the next file? I can write a little macro: :w^V^M:n^V^M that does the trick, but this is a pain given that ":wn" already exists. Suggestions?
-- -- You received this message from the "vim_use" 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_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/c44a75f6-9ac9-475b-a0cf-37c17f3c2411n%40googlegroups.com. |
I'm not sure, but I think you could prefix the command with
:silent. Have you tried that? On 2021/02/12 20:40, cjsmall wrote:
-- Regards, Kwezi Mhaga-- -- You received this message from the "vim_use" 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_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/DB6P190MB05023B442D9369F108122082AB8B9%40DB6P190MB0502.EURP190.PROD.OUTLOOK.COM. |
In reply to this post by cjsmall
On 2021-02-12 10:40, cjsmall wrote: > > When I use the :wn" command, before moving to the next file I see a > notification like: > > "file1" 137L, 5359C [w] > "file2" 137L, 5359C > Press ENTER or type command to continue Set cmdheight to something larger than 2. I found this at :h press-enter -- Stan Brown Tehachapi, CA, USA https://BrownMath.com https://OakRoadSystems.com -- -- You received this message from the "vim_use" 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_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/c3105e23-f6e1-3b76-4e80-9516a8e39977%40fastmail.fm. |
Thanks to kwezi... who suggested prefixing "silent" to the command. :silent wn does indeed work, but I don't want to have to type that every time. Stan Brown's comment to set cmdheight to two or more also works, but it comes at the price of permanently losing a full line of editor space. This is not worth it for the benefit received. So I guess I'll just stick with a macro that issues either the ":w^V^M:n^V^M" or ":silent wn" sequence. Thanks for the replies! On Friday, February 12, 2021 at 10:58:29 AM UTC-8 Stan Brown wrote:
-- You received this message from the "vim_use" 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_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/ff2cc3ff-4012-4e3c-9c0f-0c3b4b058aa4n%40googlegroups.com. |
In reply to this post by cjsmall
On Fri, Feb 12, 2021 at 10:40:15AM -0800, cjsmall wrote:
> >When I use the :wn" command, before moving to the next file I see a >notification like: > >"file1" 137L, 5359C [w] >"file2" 137L, 5359C >Press ENTER or type command to continue > >Obviously this requires a <CR> to advance to the next file. Is there a way >to suppress this notice and simply move to the next file? I can write a >little macro: > >:w^V^M:n^V^M > >that does the trick, but this is a pain given that ":wn" already exists. >Suggestions? Another option setting to consider is 'shortmess' which can shorten message text and affect how messages are displayed. -- -- You received this message from the "vim_use" 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_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20210217162935.GC14859%40linux.site. |
Free forum by Nabble | Edit this page |