2

The vim.current.buffer list is a list of strings: :pyx import vim; print(type(vim.current.buffer[0])) <class 'str'> and strings are immutable in Python; something like a_str[2] = 'b' doesn't work either. This is just a property of the Python programming language (and many other languages, including VimScript). The general way to do this is to get the ...


Only top voted, non community-wiki answers of a minimum length are eligible