Saturday, August 20, 2016

Re: Changing the defaults with Vim 8

Hi Tim and Bram

> > > As a backwards incompatible change, my biggest want would be that the
> > > outer-quotation text objects (a" and a') would no longer eat leading
> > > whitespace. I've never wanted the out-of-box behavior, always
> > > wanting to change just the string-cum-quotes.
> > >
> > > http://vim.1045645.n5.nabble.com/quotation-text-object-consternation-td5725045.html
> > >
> > > Or at least an option to control that.
> >
> > First time I hear about this.
>
> Please refer to the last two lines of `:help iquote`.
> DOC> i" v_iquote iquote
> DOC> i' v_i' i'
> DOC> i` v_i` i`
> DOC> Like a", a' and a`, but exclude the quotes and
> DOC> repeating won't extend the Visual selection.
> DOC> Special case: With a count of 2 the quotes are
> DOC> included, but no extra white space as with a"/a'/a`.
>
> In the current situation, it can be avoided in the following way.
>
> c2i"
>
> --
> Best regards,
> Hirohito Higashi (a.k.a. h_east)

I agree with Tim that this would be a nice, though incompatible change
for vim. I use these mappings to make a" leave the space intact:
xmap <silent> a" i"lOhO
omap <silent> a" :<C-U>normal! vi"lOhO<CR>

Best regards,
Marcin

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment