On Thu, October 29, 2009 1:10 pm, Gabor Urban wrote: > ---- cut > function Header(...) > let template = ["Id", "Short Description", "Severity", "Status", > "Description"] > let i = 1 > echo "Test" i > " for item in template > " append(i, item) > " let i = i + 1 > " endfor > endfunction
There are at least 2 problems with this code. First, the let template statement should only be on one line. For two lines you need line continuation characters in front of it: let template = ["Id", "Short Description", "Severity", "Status", \ "Description"] and second, you have to "call" append, as it is a function and not an ex command. With these 2 adjustments, it works fine for me. regards, Christian --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
