Cross-posting re structural editing: https://github.com/guns/vim-sexp/issues/32 > What I think we need is sexp-specific paste commands that do not rely on placing the cursor to achieve the desired result and that get whitespace right every time. >
sexp_paste_at_list_head
> sexp_paste_at_list_tail
> sexp_paste_after
>
> sexp_paste_after would mean “paste after the element containing the cursor.”
> These should take a buffer and a count and paste into the counth outer sexp relative to the cursor.
> I do not know a lick of vimscript but I think I can help describe the desired UI and behavior and it doesn’t seem prohibitively complex to get it right in 99% of cases, since you pretty much never want whitespace between the enclosing bracket and the element and pretty much always want it between the element and any adjacent elements.Personally I just paste in whatever ugly way and immediately run Cljfmt with a hotkey to fix the whitespace and indentation