On Wed, May 19, 2010 at 10:15 AM, Yang Zhang <yanghates...@gmail.com> wrote:
> How do I get the current word from a Python script? I can get > vim.current.window.cursor which is row,col, and I can get > vim.current.line, but which character we're in is a computation that > considers the tabstop and all the tabs on the line...is there an > easier way? > I am not sure whether i get your idea. Do your means for the current code ? # get current character vim.current.line[vim.current.window.cursor[1]] > -- > Yang Zhang > http://yz.mit.edu/ > > > -- > 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 > -- 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