Wednesday, October 10, 2012

Re: bracket problem while using d} or !}fmt on ubuntu

Hi Alain_b!

On Mi, 10 Okt 2012, Alain_b wrote:

> Hello,
>
> Those two elementary actions don't work the normal way!
>
> - d} acts as } alone and goes to end of paragraph instead of deleting it.

normal mode d?
Works here with the same version of vim. I can't see, why this wouldn't
work.

> - !}fmt gives error message '/bin/bash: }fmt : command not found' instead of reformatting until end of paragraph by fmt shell command. Thus it acts as if !!}fmt was emitted.

Sure :h :! states:

,----
| *:!cmd* *:!*
| *E34*
| :!{cmd} Execute {cmd} with the shell. See also the 'shell'
| and 'shelltype' option.
`----

So } would be seen as part of the command and clearly there is no }fmt
command.

Or are you talking about !}fmt in normal mode? That should work and also
works here.

> Clearly it's a bracket problem since similar usages like d$ or !2jfmt work well.
>
> Launching vim with -u NONE or -U NONE has no good effect. So it seems to me, it's a vim problem. I feel really alone with such a big problem...
>
> Any idea ? Thanks
> Alain
>
> PS1 I am using ubuntu 12.04 LTS
> PS2 vim --version gives the following (French installation) :

Same version here.

Mit freundlichen Grüßen
Christian

--
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

No comments: