Saturday, April 3, 2021

Re: dab, da(, da[, da{, etc. are not working!

* Maadis Ie <maadis.ie@gmail.com> [2021-04-04 03:26]:
> I am using vim 8.2 under Ubuntu and I have
> added vim-latex and vim-matchup plugins.

a bit of context:

https://github.com/SpaceVim/vim-matchup
https://github.com/vim-latex/vim-latex

general note: vim-8.2 has evolved a bit..
it is currently up to patch 2705.

i don't know whether your problem will be fixed by
upgrading, but it might help avoid other problems. :)

> Everything looks working fine ---
> di" can delete texts inside double-quote ---
> but dab, daB, dib, diB, di{, etc. cannot do anything.
> Are there any issues? Have I missed anything here?

"block" as in "code block between pairs of {}"?

maybe you can illustrate by giving an example?

if you meant "sequence of non-empty lines"
then you might be looking for these commands:

dap and dip

see also:
:help ap
:help ip
:h text-objects

ps: i know that "---" is inserted into
the text without any surrounding spaces
but this upsets many reading conventions
and breaks some highlighting/coloring.
so i mmoved your example onto a line
of its own. somehow easier to read. :)

Sven

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20210404015125.dztrgqpaz5j22xsv%40guckes.net.

No comments:

Post a Comment