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

Swapping words hangs after 3 times when used as part of a macro #49

Open
raveensrk opened this issue Oct 15, 2020 · 5 comments
Open

Swapping words hangs after 3 times when used as part of a macro #49

raveensrk opened this issue Oct 15, 2020 · 5 comments

Comments

@raveensrk
Copy link

For example,

qa
cxiw
move to next word
cxiw
qa

@a
@@
@@

@@ - hangs. 

The macro does not work. But independently cxiw works.

@tommcdo
Copy link
Owner

tommcdo commented Oct 19, 2020

Hey @raveensrk, I'm unable to reproduce this. Can you provide a sample file that I can test it on?

@raveensrk
Copy link
Author

raveensrk commented Oct 24, 2020 via email

@piersolenski
Copy link

I also can't get this working, either as a macro or a key map. Ideally I want to do something along the lines of <leader>x cxiw<cr> in order to be able to quickly swap words - is this possible?

@tommcdo
Copy link
Owner

tommcdo commented Oct 27, 2021

@piersolenski I'm not sure I understand the use case you're describing, and I wonder if it's the same issue as reported here, or perhaps something different. Can you go into a bit more detail?

@piersolenski
Copy link

Say I want to exchange two words, using cxiw on the first and then cxiw on the second works. However, if I assign this to a keymapping, say nnoremap <leader> x cxiw or use it in a macro, nothing happens. But, like in the initial ticket, independently cxiw works.

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

3 participants