Topic: Re: Assigning long line word wrap to a key? (1 of 6), Read 52 times
Conf: Keyboard, keystroke macros
From: Fritz Heberlein
Date: Tuesday, February 27, 2001 02:50 PM

>>
I've assigned long line word wrap to Ctrl-w by entering
Ctrl-W [MENU]VW
into my vedit.key. Whenever I press it, word wrap gets
toggled properly, but I have to press Escape to close
the menu.
<<

I have tried your definition and it works ok - no need to press ESC.

Fritz

 


Topic: Re: Assigning long line word wrap to a key? (2 of 6), Read 54 times
Conf: Keyboard, keystroke macros
From: Ted Green
Date: Tuesday, February 27, 2001 03:02 PM

At 02:50 PM 2/27/2001 -0500, you wrote:
>I have tried your definition and it works ok - no need to press ESC.

I also cannot find any problem. Make sure there are no extra spaces on your definition line the vedit.key file. For example "[MENU] VW", "[MENU]V W", or "[MENU]VW " would each cause some type of problem.

Ted.

 


Topic: Assigning long line word wrap to a key? (3 of 6), Read 51 times
Conf: Keyboard, keystroke macros
From: Michael Lang
Date: Wednesday, February 28, 2001 03:17 AM

In my first message, I didn't mention, that I have this
problem with Vedit for DOS. In an email, Ted Green
told me, to add an [ESCAPE] after the [MENU]VW in my
vedit.key. That does the trick!

<*** Michael Lang ***>

 


Topic: Re: Assigning long line word wrap to a key? (4 of 6), Read 53 times
Conf: Keyboard, keystroke macros
From: Ted Green
Date: Wednesday, February 28, 2001 05:28 PM

At 03:17 AM 2/28/2001 -0500, you wrote:
>In my first message, I didn't mention, that I have this
>problem with Vedit for DOS. In an email, Ted Green
>told me, to add an [ESCAPE] after the [MENU]VW in my
>vedit.key. That does the trick!

There are a few differences between the Windows and DOS versions. In the DOS version, selecting a "Check box" in the menus does not close the menu. I implemented it this way so that you could easily select {FILE, Enable edit restore} and then {FILE, Exit}, or multiple options in {VIEW, Options}.

Consequently, "[MENU]VW[ESCAPE]" will work in the DOS version, but not in the Windows version. The following assignment, using the macro language will work in both versions:

[Ctrl-W] [VISUAL EXIT]
if(CF(S_DSP_WRAP)==0){CF(S_DSP_WRAP,1)}else{CF(S_DSP_WRAP,0)}

This should all be entered as one line of course.

BTW - in my previous message I mentioned you must watch out for extra spaces in the .KEY file assignments. However, you will often see extra space following "[VISUAL EXIT]"; this is OK because you are then in Command Mode and extra spaces between the commands are ignored.

Ted.

 


Topic: Re: Assigning long line word wrap to a key? (5 of 6), Read 55 times
Conf: Keyboard, keystroke macros
From: Christian Ziemski
Date: Thursday, March 01, 2001 02:06 AM

>[Ctrl-W] [VISUAL EXIT] if(CF(S_DSP_WRAP)==0){CF(S_DSP_WRAP,1)}else{CF(S_DSP_WRAP,0)}


Or shorter:

[Ctrl-W] [VISUAL EXIT] CF(S_DSP_WRAP, CF(S_DSP_WRAP)==0)


Christian

 


Topic: Re: Assigning long line word wrap to a key? (6 of 6), Read 54 times
Conf: Keyboard, keystroke macros
From: Ted Green
Date: Thursday, March 01, 2001 09:43 AM

At 02:07 AM 3/1/2001 -0500, you wrote:
>Or shorter:
>[Ctrl-W] [VISUAL EXIT] CF(S_DSP_WRAP, CF(S_DSP_WRAP)==0)

Ouch! You are impressive. I never thought of that terse code.
Of course, unless you are very familiar with the VEDIT macro
language and C, you would never understand it.)

Ted.