I recently use py3 in vim and try to accomplish some function.
I remember that in py( which means python2 ),
we can clear the current buffer by :
:py vim.current.buffer[:] = []
OR:
:py del vim.current.buffer[:]


But in py3 now, the former code return a error message, and i can't
find other way to
clear the buffer in py3 code.

the error message is:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
TypeError: sequence index must be integer, not 'slice'

Is this a using misstake or a problem in vim-py3?

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to