Created
March 24, 2015 03:52
-
-
Save nefftd/05aa11275d745b43e885 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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