Use vim.current.buffer instead of vim.buffers[-1]

Fixes #15
Merge pull request #17 from blueyed/master

Use vim.current.buffer instead of vim.buffers[-1]