:%s/$/text to be pasted/g


-- 

 Quoting PSN ([email protected]):
 Subject: Paste text end of all lines
 Date: Sun, Oct 11, 2009 at 05:24:22PM -0700

        
        Hi All,
        My apologies if the same question is asked before. However, i have
        tried searching but could not find anything.
        
        Does any of you know how can i paste some text at the end of each line
        in a file. Note that the lines need not be of the same length
        
        Example:
        Before
        ----------
        line 1
        line two
        line three
        
        After
        -------
        line 1 text to be pasted
        line two text to be pasted
        line three text to be pasted
        
        
        Thanks for your time !!
        
        
                

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to