On May 19, 4: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?

You could try this:

word = vim.eval('expand("<cword>")')

Marko

-- 
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