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

Fixes #15