Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macro recording while in visual mode and using commands fails #3030

Open
ak98 opened this issue Nov 7, 2022 · 0 comments
Open

Macro recording while in visual mode and using commands fails #3030

ak98 opened this issue Nov 7, 2022 · 0 comments

Comments

@ak98
Copy link

ak98 commented Nov 7, 2022

Describe the bug
Record macro with command on visual selection fails due to incorrect recording of '<,'>

To Reproduce
in normal mode with caret on start of text
"123
456

"

start record macro a, switch to vis line mode and select all lines of paragraph , enter command mode and type 'norm I XXX ', press return to execute commmand, then press q to stop recording

keystrokes: qaV}k:norm I XXX q

Expected behavior
register "a should contain 'V}k;norm I XXX '
and excuting macro a should insert 'XXX ' at start of each line

** Actual result
register "a contains 'V}k;'<,'>norm I XXX '

note the sequence '<,>' before the command text
and as a result exucuting macro fails with

Parse error: '

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant