Hi, Is there a way to do an inline conditional such as for demonstration:
vnoremap <silent> <expr> <M-Left> <C-\><C-n>':let [line_start, col_start] = getpos("v")[1:2] <bar> :let [line_end, col_end] = getpos(".")[1:2] <bar> (line_end > line_start) ? "ge" : "b"<CR>' I can do something in a function but that has several exe 'normal ...' statements and thus does not draw smoothly. It seems I cannot get past the :let part. thx for any help and everything vim, stay safe everyone during this mess, -m -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/cbb3dc1e-ec0f-4c0e-8211-fbddfc9329a9%40googlegroups.com.