misfo / jim

Vim mode for Ace (Github & Cloud9's editor)
http://misfo.github.com/jim
MIT License
65 stars 3 forks source link

`w` and `W` special EOL behavior in operations #18

Closed misfo closed 13 years ago

misfo commented 13 years ago

w and W motions that would normally move to the first non-blank of the next line (e.g. pressing 2w on the second to last word in a line), only operate to the end of the line (i.e. d2w on the second to the last word of a line just deletes to the end of the line). This special case needs to be implemented.

Here's the failing test case: https://github.com/misfo/jim/blob/e5810c1b1e6ee028e903bb3edb447155a438be66/test/ace/operators.coffee#L18

michaelficarra commented 13 years ago

should go to end of the line if part of an operation and would otherwise to to the beginning

yeah...

misfo commented 13 years ago

Hahaha. The sentence made so little sense that I had to include it, if only for entertainment value...

On Aug 17, 2011, at 6:50 PM, michaelficarrareply@reply.github.com wrote:

if part of an operation and would otherwise to to the beginning

yeah...

Reply to this email directly or view it on GitHub: https://github.com/misfo/jim/issues/18#issuecomment-1832025