On Feb 1, 2011, at 5:33 AM, Hofmann, Joachim wrote:

> Hello,
> 
> How is the syntax to a for list with constants
> 
> e.g.
> 
> let mydb = "db1 db2 db3"
> for db in mydb
> source db.dict
> end


let mydb = "db1 db2 2b3"
for db in split(mydb)
  exec 'source '.db.'.dict'
end

I'm not sure what your db.dict is, but what I wrote would source db1.dict, 
db2.dict and db3.dict.

Israel

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to