Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Smart indent with region selected

Open zehcnas34 opened this issue 12 years ago • 1 comments

In LT Vim mode when trying to smart indent a region with the = key

i just replaces the region with the = sign

d5558

zehcnas34 avatar Oct 16 '14 17:10 zehcnas34

Thanks for the report. Normally this would be an easy keybinding I could add to the plugin e.g. (:lt.plugins.vim/map-keys-visual {"=" ":ltexec smart-indent-selection"}). Unfortunately, it's more complicated due to the bug outlined in #41. In the meantime, if you're doing this with paredit, I'd recommend a binding like this in the :editor section: "cmd-=" [:paredit.select.parent :smart-indent-selection :paredit.select.clear]

cldwalker avatar Oct 16 '14 22:10 cldwalker