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
Post a Comment