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

Map last executed "visual mode" align to a key or to a command #144

Open
borisbrodski opened this issue Sep 14, 2020 · 2 comments
Open

Map last executed "visual mode" align to a key or to a command #144

borisbrodski opened this issue Sep 14, 2020 · 2 comments

Comments

@borisbrodski
Copy link

borisbrodski commented Sep 14, 2020

I would like to repeat last align (that was configured interactively) at some point in the future.

After finishing easy-align interactive mode the plugin prints the resulted command and execute it.
This is very nice. But I couldn't find a way to copy this resulted command and reissue it or map it to a key stroke.

If there is currently no way of copying last issued align command, consider this a feature request.

Thank you for amazing plugin. Just love it!

@strboul
Copy link

strboul commented Oct 22, 2020

I suppose you have to install a separate plugin for this. See the docs :h <Plug>(EasyAlign)

Notice that the commands are repeatable with . key if you have installed
{repeat.vim}{3}. Install {visualrepeat}{4} as well if you want to repeat in
visual mode.

{3} https://github.com/tpope/vim-repeat
{4} https://github.com/vim-scripts/visualrepeat

@borisbrodski
Copy link
Author

Thank you very much for your response. I can repeat the Align with the dot (.), no problem here. What I rather mean is to repeat visually configured align at some point in the future.

Let me rephrase my question/feature request:

  • How can I map a visually configured align to some hotkey or to a command?

@borisbrodski borisbrodski changed the title Repeat last align Map last executed "visual mode" align to a key or to a command Oct 23, 2020
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

2 participants