preservim / vim-textobj-sentence

Improving on Vim's native sentence text object and motion
Other
100 stars 8 forks source link

One strange sentence navigation case #10

Open panozzaj opened 8 years ago

panozzaj commented 8 years ago

Consider the case:

Prof. Plum said, "Hey Mr. Green. Didn't see you there." He casually slid the revolver behind a nearby book. Plum lit his pipe.

If the cursor is on the beginning of the line in normal mode, and I press ), it goes to the "D" of "didn't". I think this is reasonable. However, if I press ) again, it jumps to the "P" in the second "Plum" (last sentence) and skips over the "He" sentence. I was thinking that it would move to the middle sentence instead.

It is entirely possible that I have a bad configuration or interaction with another plugin of some sort. Just wanted to file this in case it is not the desired behavior. I could see this being confusing if I had a lot of back-and-forth dialog in a piece of writing. Hope this helps, and thanks for making this plugin!

reedes commented 8 years ago

Looks like a bug. It works properly with curly quotes, but not with straight quotes.

Thanks for reporting it!