Monday, November 30, 2009

How building a List from a textfile in vimscript

Hi,

I have a text file and it contains those lines

item1
item2
item3


I would like to read this file from a vimscript and feed a List with
all items read.

echo myList

['item1','item2',''item3]

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

No comments: