Skip to content

Instantly share code, notes, and snippets.

@nefftd
Created March 24, 2015 03:52
Show Gist options
  • Save nefftd/05aa11275d745b43e885 to your computer and use it in GitHub Desktop.
Save nefftd/05aa11275d745b43e885 to your computer and use it in GitHub Desktop.
local buffer = vim.buffer()
local data = {}
for i,entry in ipairs(buffer) do
data[i] = entry
end
data = table.concat(data,'\n') -- join the table into a string, separated by new lines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment