Author Topic: vim mode -- feature request, or answer how to hook in  (Read 2212 times)

b

  • Senior Community Member
  • Posts: 325
  • Hero Points: 26
vim mode -- feature request, or answer how to hook in
« on: November 01, 2016, 06:36:46 PM »
I've asked about this before, but seeing another comment about vim emulation commands, I thought I'd bring this back up again.

In vim, there is a keystroke sequence I've used all the time to reformat text.  Unfortunately, SE doesn't support it (at it seems cumbersome to get SE to do similar operations).  I'd love to either see the sequence added, or be directed how to add vim keymap sequences to bind to macros.

If you type some text and either have the cursor within the line of the text, or if you have a highlight a block of text, you can then type gqq to reformat based on the current/previous line format position.   I've used this to highlight a block, block indent and then reformat to the new indent location (reflow/wrapping the lines that now extend past my soft right margin.   The reflow/wrapping also accounts for comments (E.g., * is adjusted).

For now, I flip between vim and SE.