Skip to content
Discussion options

You must be logged in to vote

currently it stays like flash{}enable but i want it to go like

flash{}
enable

Sorry, but this behavior doesn't fit a design of 'mini.pairs' at all. The current behavior does, as it inserts a pair. For a more complex editing, use Normal mode actions/operators. For example, from 'mini.surround'.

But in this particular case I'd do something like this:

  • Put cursor on the . in Normal mode.
  • Press x to remove the dot.
  • Press C to remove all the text to the right (which puts enable = true; in the " register) and starts Insert mode.
  • Press { to insert a {} pair.
  • Press <CR> to start new line from inside braces.
  • Press <C-R>" to insert contents of " register.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@niksingh710
Comment options

@echasnovski
Comment options

Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.pairs
2 participants