Is there an easy way in Vim to do the following?
I have an expression (range 5)
and then I want to assign that to a symbol?
I was thinking of something like, moving the cursor to the beginning of the expression then start typing def rng (range 5)
and pressing a key combination to wrap that in parens.
In Vim-sexp that would be localleader w.
Vim-surround would also work (or vim sandwich)
ah thanks, I’ll give it a go 👍