Re: vmap inline conditional ques

2020-04-08 Thread M Kelly
Thank you again Andy. I'm going to refactor some of my other routines now that I learned your better way to do these sort of things. -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

Re: vmap inline conditional ques

2020-04-08 Thread M Kelly
Andy, hi Wow, so cool. All I can say is incredible. I learn so much from the great people and replies here. take care, -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

Re: vmap inline conditional ques

2020-04-08 Thread 'Andy Wokula' via vim_use
Am 08.04.2020 um 01:19 schrieb M Kelly: Hi, Is there a way to do an inline conditional such as for demonstration: vnoremap':let [line_start, col_start] = getpos("v")[1:2] :let [line_end, col_end] = getpos(".")[1:2] (line_end > line_start) ? "ge" : "b"' I can do something in a function

vmap inline conditional ques

2020-04-07 Thread M Kelly
Hi, Is there a way to do an inline conditional such as for demonstration: vnoremap':let [line_start, col_start] = getpos("v")[1:2] :let [line_end, col_end] = getpos(".")[1:2] (line_end > line_start) ? "ge" : "b"' I can do something in a function but that has several exe 'normal ...'