On Sat, 21 Nov 2009 20:14:12 -0600 Tim Chase wrote: >> Just to get me started on the more complex commands such as these: >> where can I look up commands like :v and :g ? > >The :g and :v commands are documented as "sc" mentioned. The >trick is knowing how to string them together with other Ex >commands to do what you want.
Gosh! The possibilities are endless. Many thanks to you and sc for putting me on the right track. As a matter of interest, I have another repeat expression, but within one line. I have a working solution but it does not seem very elegant: line ends and finishes with two bars: || dfjdfjd || dfjdkfjsd || sds || In reality the repeat pattern is longer. I need to insert some text after the bars: ||X dfjdfjd ||X dfjdkfjsd ||X sds || In reality X is fairly long. My substitution: :s/^||\(.*\)||\(.*\)||\(.*\)||$/||X \1||X \2||X \3||/ I have mapped this in nomral mode: :nmap :s/ ... / ... /<Enter> For some reason, I need to escape the bars now. Is there a better way of doing this? -- Best Regards, Tarlika Elisabeth Schmitz --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
