vim - How to read & write a list to/from a file with vimscript -


i've got configuration data that's stored in list - i'd read , write external file. suggestions on best way this?

try this:

let data = readfile('config') ... if writefile(data, 'config')     echomsg 'write error' endif 

Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -