Re: ANN: vim-textobj-quotes - text objects for the closest pairs of quotes of any type

2014-04-12 Thread BPJ
What happens if the cursor is between two different quotes on the same line 'like' in| this example with a far away quote Will it always jump to the double quote to the right or is there a cutoff point where the quote to the right is considered too far away? Den 12 apr 2014 03:12 skrev Anton

Re: ANN: vim-textobj-quotes - text objects for the closest pairs of quotes of any type

2014-04-12 Thread Anton Beloglazov
In a case when both pairs of quotes are on the same line with the cursor, it will always jump forward regardless of the distance. However, if the front quotes are on the next line, it will jump back to the quotes on the same line. If both pairs of quotes are not on the same line with the cursor,

ANN: vim-textobj-quotes - text objects for the closest pairs of quotes of any type

2014-04-11 Thread Anton Beloglazov
Hi All, I'm happy to announce a new plugin: vim-textobj-quotes - text objects for the closest pairs of quotes of any type. https://github.com/beloglazov/vim-textobj-quotes Using only `iq` or `aq` it allows you to operate on the content of single ('), double (), or back (`) quotes that

Re: ANN: vim-textobj-quotes - text objects for the closest pairs of quotes of any type

2014-04-11 Thread aRkadeFR
Hello, IMHO a bit unnecessary with the builtin possible motions. I use lots of : di' da' etc. The only benefits would be your the example 3 and 5 on which I would need to do two successive commands. Am I right or there others benefits I haven't noticed? Thanks anyway for the plugin and the

Re: ANN: vim-textobj-quotes - text objects for the closest pairs of quotes of any type

2014-04-11 Thread Anton Beloglazov
Thanks for your feedback! One major difference with the built-in text objects is that this plugin provides a single text object that handles three types of quotes in a unified way, i.e., with a single key binding. Another difference is that this plugin supports multiple lines, for example: