On Sun, Feb 21, 2010 at 12:20 PM, epanda <[email protected]> wrote: > Hi, > > I would like to generate my header ; > > func! GenereHeader() > let l:header = "\"**" . "\n" > let l:header .= "\\\* ..." . "\n" > let l:header .= "\\\* @author ONEPERSON" . "\n" > let l:header .= "\\\*" . "\n" > call setline(line('.'),l:header . getline(line('.'))) > endfunc > > Setline replace my line by header . my line but I don't understant why > \n is not interpreted ? > > Thank you > >
Try inserting ^M instead (obtained by pressing CTRL+v, then Return). -- Christophe-Marie Duquesne 06 84 14 26 82 - mobile 04 76 57 48 06 - g-scop 04 97 04 27 33 - amadeus -- You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php
