But this is silly, as you would then lose access to the vim objects referred to by the variables. A sequence object providing access to the list of vim buffers. The last case deserves a little explanation. A range is a bit like a buffer, but with all access restricted to a subset of lines. All output from Python code is displayed in the Vim message area.
Normal output is displayed as information messages, and error output is displayed as error messages.
Buffer objects can also be treated as sequence objects. All of the usual sequence operations, including indexing, index assignment, slicing and slice assignment, work as you would expect. Buffer indexes start at zero, as is normal in Python. This differs from vim line numbers, which start from 1. Append a list of lines to the buffer Note that the option of supplying a list of strings to the append method differs from the equivalent method for Python's built-in list objects.