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

multiple cursors position, like snippets ? #45

Open
kiuKisas opened this issue Jun 9, 2023 · 1 comment
Open

multiple cursors position, like snippets ? #45

kiuKisas opened this issue Jun 9, 2023 · 1 comment

Comments

@kiuKisas
Copy link

kiuKisas commented Jun 9, 2023

I don't know how much work it would need, but it could be nice to be able to set multiple cursors positions and jumping through them, similar to how we can do that with snippets. Something like {{_cursor$n_}} ( {{_cursor$1_}}, {{_cursor$2_}}, ..)

My use case is that I want to use a template for some blog posts, and to quickly iterator through some metadata. Ideally, I prefer to not rely on snippets for that as it concern the creation of a new file only.

If anyone is interest, a quick workaround using macro:

  • put some characters that you can search in your template ($$ for example)
  • search for this character through # or
  • record a macro that go to the next occurrence and enter insert mode, example with a macro set to q : qqnciw<C-o>q
@glepnir
Copy link
Member

glepnir commented Jun 9, 2023

if support jump between these cursor pos then need provide a function or command , you can bind it with a key . can implement it .

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