Hello, Christian. at least, you are the guru for me.
I didn't know for '&'. thanks a lot. On Jan 21, 3:01 am, "Christian Brabandt" <[email protected]> wrote: > On Thu, January 21, 2010 5:44 am, HanGyo Jung wrote: > > Hi! vim guru~ > > Oh please, don't call us guru. At least I myself would not consider > myself it (there are many different things I don't know about vim) > > > > > > > I want to do like below. > > Do you have any idea to do using simple command? > > > before ----------------------- > > i.sql > > init.sql > > login.sql > > Documents > > my_html.htm > > > after ----------------------- > > i.sql i.sql > > init.sql init.sql > > login.sql login.sql > > Documents Documents > > my_html.htm my_html.htm > > this is actually quite easy: > :%s/.*/& &/ > > which translates to: > :% for each line > s/ substitute > .*/ any non empty line by > & &/ replacing it by itsself and appending itsself > separated by space > > regards, > Christian
-- You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php
