Thursday, December 17, 2009

Re: vimscript: how to break from function if user input is ESC

Hi David!

On Do, 17 Dez 2009, David Lam wrote:

> How do i do something like, (if q == ESCAPE) return; ?

You could test, whether q is empty.

if(empty(q)) | return | endif

regards,
Christian
--
hundred-and-one symptoms of being an internet addict:
28. You have comandeered your teenager's phone line for the net and even his
friends know not to call on his line anymore.

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: