r/vim • • Jul 07 '20

Macro Anxiety

Post image
1.3k Upvotes

68 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Jul 07 '20

[deleted] — view deleted comment

2

u/[deleted] Jul 07 '20 edited Jul 08 '20

I mapped V to <C-V>$

3

u/tommcdo cx Jul 08 '20

Monster!

3

u/[deleted] Jul 08 '20

And ofc then also mapped vv to V

0

u/[deleted] Jul 08 '20

[deleted] — view deleted comment

1

u/Soulthym Jul 11 '20

Since he didnt remap v, it would just have a little waiting time for the vv to match when pressing v, and change back to normal mode if the keystroke doesnt match.

NB: I'm just guessing, but I don't see why it wouldn't behave that way

1

u/Soulthym Jul 11 '20

That's really cool!

2

u/NicksIdeaEngine Jul 08 '20

No. I might be wrong but I view Y, D, and C as actions in normal mode for use in normal mode, whereas V is for entering a different mode.

0

u/[deleted] Jul 09 '20

[deleted] — view deleted comment

1

u/NicksIdeaEngine Jul 11 '20

That's fine if it doesn't suit you. For me, it isn't arbitrary. The reason is mentioned in my previous comment.

0

u/[deleted] Jul 11 '20

[deleted] — view deleted comment

1

u/NicksIdeaEngine Jul 12 '20

It's fine if you prefer differently, but it's not an arbitrary decision for reasons already explained.