Skip to content

multiple cursors position, like snippets ? #45

Description

@kinooyume

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions