Problem with macro and defaults.vim

40 views
Skip to first unread message

Cesar Romani

unread,
Nov 22, 2016, 3:32:16 PM11/22/16
to vim...@googlegroups.com
I'm using Vim 8.0.94 on Windows.
Suppose I have the following line
111 bbb aaa ccc

and I delete the first word with 'dw', the second with '.', go the end
of line with $, go the previous space with 'F' followed by space, and do
'p'. Summing up, I'm doing 'dw.$F p' (without the quotes). If I directly
run these commands, I get:
aaa bbb ccc

but if I use a macro, say @a, it doesn't work. I get
bbb aaa 111 111 ccc

If I disable defaults.vim it works.

Many thanks in advance,

--
Cesar

Christian Brabandt

unread,
Nov 24, 2016, 2:11:52 AM11/24/16
to vim...@googlegroups.com
I cannot replicate this problem. Please check the following:
- What is the content of your register?
- Where is the cursor located when you run the macro?
- How can we reproduce this problem?

Also defaults.vim does not set that many options. If nothing helps you
might want to
check each option individually if it has an influence.

Best,
Christian

Cesar Romani

unread,
Nov 25, 2016, 10:18:34 PM11/25/16
to vim...@googlegroups.com
Thanks, now it works. Perhaps, the problem was that I needed to empty
the register "a" before, with qaq. Sorry for the noise.

Regards,

--
Cesar

Reply all
Reply to author
Forward
0 new messages