noctuid / lispyville

lispy + evil = lispyville
GNU General Public License v3.0
315 stars 23 forks source link

How to transpose in normal mode? #59

Closed rgrinberg closed 5 years ago

rgrinberg commented 5 years ago

Consider the following lisp snippet:

(if (eq branch nil)
        (format " [%s]" branch)
      "")

Where I want to transpose the if branches. If I put my cursor on the 2nd line on the ), and try to transpose the sexps I get this error:

forward-sexp: Scan error: "Containing expression ends prematurely", 473, 474

Does lispyville have a solution for this?

noctuid commented 5 years ago

For this case, you could use lispyville-drag-forward or lispyville-drag-backward.

rgrinberg commented 5 years ago

Thank you!