On 19 Jun 2007, at 04:40, Christoph Koehler wrote:
I am looking into building my own bundles and was wondering if it is possible to somehow get the last 3 or so words before the caret. I know there is a variable for the current line and current word, but can I somehow get the last 3 or so words even if they are on different lines?
Well, there're some possibilities to do that. First in my mind would be if the number of words is fixed, in your example three, to record a macro:
moveWordRight moveWordLeftAndModifySelection moveWordLeftAndModifySelection moveWordLeftAndModifySelection
and bind it to any key equivalent
In general the macro will do: 1: place the caret at the end of the current word 2...4: expand the selection word by word
hans