Thursday, December 17, 2009

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

On Thu, Dec 17, 2009 at 1:06 PM, Christian Brabandt <cblists@256bit.org> wrote:
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


cool- that fixes the problem... thanks!

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

No comments: