Skip to content

mini.align: How to add more spaces between two columns #313

Closed Answered by echasnovski
rafamadriz asked this question in Q&A
Discussion options

You must be logged in to vote

The cleanest approach for me seems to not do this within 'mini.align'. You align with gaip# leading to the first example (or shifted right part depending on the initial text) and then use Visual-block mode to tweak spacing:

  • Place cursor on the # in the first line.
  • Press <C-v> (Ctrl + v).
  • Position cursor on the # in the last line. This should lead to a single column selection as #s are aligned.
  • Press I and add as many spaces as you'd like.
  • Press <Esc>. This will exit Visual-block mode and add whitespace to all selected lines.

If you must do this with 'mini.align', there are these steps that work in this particular instance:

  • gAip to start align with preview.
  • s followed by #.* followed by <…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@rafamadriz
Comment options

@echasnovski
Comment options

@rafamadriz
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
2 participants