Ensure you change the file type to a .cfg. It appears your file is actually named autoexec.cfg.lua
If you select "File Name Extensions" from the "View" Menu, you'll see the full file name with extension.
I'd start by removing line 1 which is the path/name to the same file.
It looks like you only need the line that reads"
table.insert(options.graphics.VFSTexturePaths, "c:/Saved Games/DCS/Textures/oh-6")
"