On 2008-11-08, Hari <[EMAIL PROTECTED]> wrote: > I'm trying this from a script: > > :let a='sometext' > :put =a > > The behavior is that a newline is always created and 'sometext' added there. > Is there some way to just put text on the current line without automatically > having a newline inserted? I could use setline, but that is sort of > inappropriate for my usage. I just wish to dump text and add newlines myself > if needed.
How about either of these? 1. :let a='sometext' :exe "normal a\<C-R>=a\<CR>" 2. :let @a='sometext' :normal "ap See :help normal :help i_CTRL-R Regards, Gary --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
