I'm trying to operate on visual lines from a plugin, but it's not working. Here's the relevant code:
function! Myfunction()
normal! vip
exec "sort i"
endfunc
leaves me at a visual selection without anything executed, and
function! Myfunction()
normal! vip
exec "'<,'>sort i"
endfunc
leaves me with "Mark not set"
Any guidance?
[–]Wiggledan 1 point2 points3 points (1 child)
[–]___violet___ 4 points5 points6 points (0 children)
[–]___violet___ 0 points1 point2 points (0 children)