'Just passing call to the vim.current.window.buffer.__getitem__.'

def __getitem__(self, key):

    if isinstance(key, slice):
        return [as_unicode(l) for l in self._buffer[key.start:key.stop]]
    else:
        return as_unicode(self._buffer[key])
