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

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -