On Jul 21, 11:27 am, Ben Fritz <[email protected]> wrote:
> :help :echoerr
Scratch that, I guess it doesn't work the way I thought it did.
I tried this:
function! Ech() abort
let g:var = 0
echoerr "Die die die!"
let g:var = 99
endfu
but after running the function, g:var is equal to 99. What gives?
Apparently an "error message" (:help :echoerr) doesn't count as "an
error is detected"?
Using :throw works, but the error message looks pretty bad:
function! Ech()
let g:var = 0
throw "Die die die!"
let g:var = 99
endfu
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---