Re: How to omit the "3 substitions on 330 lines" from being displayed in Vim status bar after substition or global command is executed?
Both methods works perfectly. Thanks a lot problem solved. -- -- 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 vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: How to omit the "3 substitions on 330 lines" from being displayed in Vim status bar after substition or global command is executed?
On 14 October 2016 at 13:43, Igor Forca wrote: > Hi, > I have a text file with a lot of Vim substitution and global commands like: > :%s/\(one\) \(two\)/\1\r\2/gie > :g/(something\c/normal v%2> > and several more commands in file named myfile.vim. > > Then in the current buffer when I need to execute this kind of find/replace > substitution I just execute: > :source myfile.vim > and changes are performed without a problem. > > What I don't like is that Vim in status bar displays: > 3 substitutions on 330 lines > 4 lines >ed 2 times > > Press ENTER or type command to continue > > How to source vim file without this annoying information in status bar and > without need to press and Enter? Prefix the commands with silent: :silent %s/\(one\) \(two\)/\1\r\2/gie :help :silent You can probably also do ":silent source myfile.vim" rather than changing each line. Hope that helps, Al -- -- 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 vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
How to omit the "3 substitions on 330 lines" from being displayed in Vim status bar after substition or global command is executed?
Hi, I have a text file with a lot of Vim substitution and global commands like: :%s/\(one\) \(two\)/\1\r\2/gie :g/(something\c/normal v%2> and several more commands in file named myfile.vim. Then in the current buffer when I need to execute this kind of find/replace substitution I just execute: :source myfile.vim and changes are performed without a problem. What I don't like is that Vim in status bar displays: 3 substitutions on 330 lines 4 lines >ed 2 times Press ENTER or type command to continue How to source vim file without this annoying information in status bar and without need to press and Enter? Regards, Igor -- -- 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 vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.