Re: Get current word from Python script

2010-05-19 Thread Marko Mahnič
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

Get current word from Python script

2010-05-18 Thread Yang Zhang
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? -- Yang Zhang

Re: Get current word from Python script

2010-05-18 Thread winterTTr
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