Re: Newbie notation question: hotkeys

2006-06-19 Thread A.J.Mechelynck

[EMAIL PROTECTED] wrote:
[...]

Now, I would assume that these mappings would be applied either on app
startup or by issuing the '\lps' sequence in normal mode.  Neither seems
to be the case.  One question I have is: I think that there is a $HOME
variable used by vim, but it may not have a value under windows, and
therefore the paths to these necessary files aren't resolved.  Is this a
possibility?  Is there a way to check this?

Thanks,
Matt

[...]

On startup, Vim checks the environment and sets some variables if they 
aren't defined. Here are the main ones:


$HOME : On Unix it's normally defined. If undefined on Windows, Vim (or 
the OS) often sets it to some default such as $HOMEDRIVE$HOMEPATH or 
$USERPROFILE. If it sets it to a wrong value, set it yourself using 
either C:\AUTOEXEC.BAT or "Control Panel -> System -> Advanced -> 
Environment variables" depending on which version of Windows you are 
using. A "last resort" fallback for $HOME on single-user systems is the 
value of $VIM (see below).


$VIM and $VIMRUNTIME : Vim sets them in a rather complicated manner 
which is explained under ":help $VIM" and ":help $VIMRUNTIME". Typical 
values are:


$VIM (on Windows): the following are different but synonymous
C:\Program Files\vim
C:PROGRA~1\vim

$VIM (on Unix): the following are not synonymous but IIUC all are typical
/usr/local/share/vim
/usr/share/vim
/opt/kde3/share/vim

$VIMRUNTIME (for version 7.0 "release")
$VIM/vim70

To see how your version of Vim has set those variables, type
:echo "HOME (" . $HOME . ")"
:echo "VIM (" . $VIM . ")"
:echo "VIMRUNTIME (" . $VIMRUNTIME . ")"


Best regards,
Tony.


RE: Newbie notation question: hotkeys

2006-06-19 Thread matt.pettis
I contacted the developer to see if it was a stupidity problem on my
part, or if there was a known problem.  Turns out, there is a known
problem.

Thanks,
matt 

-Original Message-
From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 19, 2006 10:00 AM
To: Pettis, Matthew (TLR Corp)
Cc: [EMAIL PROTECTED]; vim@vim.org
Subject: Re: Newbie notation question: hotkeys

[EMAIL PROTECTED] wrote:
> The first two have 'no mapping found' as their response, and the last 
> command has:
> 
> n  \ups  :call Perl_Handle()
> n  \lps  :call Perl_Handle() 
> 
> 
> 
> -Original Message-
> From: Yakov Lerner [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 19, 2006 9:22 AM
> To: Pettis, Matthew (TLR Corp)
> Cc: vim@vim.org
> Subject: Re: Newbie notation question: hotkeys
> 
> On 6/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> The backslash key does work in insert mode... It is right above my 
>> 'ENTER' key on my keyboard.  In insert mode, it behaves like any 
>> other
> 
>> ascii character typed from the keyboard.
> 
> Try the following commands:
>   :map \cu
>   :map \c
>   :map \
> and send us output of each of these three commands.
> 
> Yakov
> 
> 
> 

As mentioned under
http://lug.fh-swf.de/vim/vim-doc/perlsupport.html#perlsupport-usage-vim
, you need to use \lps in order to define the mappings starting \c . 
Conversely, \ups undefines them.


Best regards,
Tony.


RE: Newbie notation question: hotkeys

2006-06-19 Thread matt.pettis
One thing... I looked through some of the downloads that came with this,
and I see that it has a 'perl.vim' file that looks like it should have
the mappings (however, I am only incompletely guessing at the meaning of
the syntax).  An excerpt looks like:

nmapad:call
Perl_DoWhile("a")f(la
nmapaf:call Perl_StatBlock( "a",
"for ( ; ; ) {\n}","" )f;i
nmapao:call Perl_StatBlock( "a",
"foreach  (  ) {\n}", "" )f(hi
nmapai:call Perl_StatBlock( "a", "if
(  ) {\n}", "" )f(la
nmapae:call Perl_StatBlock( "a", "if
(  ) {\n}\nelse {\n}", "" )f(la
nmapau:call Perl_StatBlock( "a",
"unless (  ) {\n}", "" )f(la
nmapan:call Perl_StatBlock( "a",
"unless (  ) {\n}\nelse {\n}", "" )f(la
nmapat:call Perl_StatBlock( "a",
"until (  ) {\n}", "" )f(la
nmapaw:call Perl_StatBlock( "a",
"while (  ) {\n}", "" )f(la
nmapa{:call Perl_Block("a")o

vmapad:call
Perl_DoWhile("v")f(la
vmapaf:call
Perl_StatBlock( "v", "for ( ; ; ) {", "}" )f;i
vmapao:call
Perl_StatBlock( "v", "foreach  (  ) {", "}" )f(hi
vmapai:call
Perl_StatBlock( "v", "if (  ) {", "}" )f(la
vmapae:call
Perl_StatBlock( "v", "if (  ) {", "}\nelse {\n}" )f(la
vmapau:call
Perl_StatBlock( "v", "unless (  ) {", "}" )f(la
vmapan:call
Perl_StatBlock( "v", "unless (  ) {", "}\nelse {\n}" )f(la
vmapat:call
Perl_StatBlock( "v", "until (  ) {", "}" )f(la
vmapaw:call
Perl_StatBlock( "v", "while (  ) {", "}" )f(la
vmapa{:call
Perl_Block("v")
 

Now, I would assume that these mappings would be applied either on app
startup or by issuing the '\lps' sequence in normal mode.  Neither seems
to be the case.  One question I have is: I think that there is a $HOME
variable used by vim, but it may not have a value under windows, and
therefore the paths to these necessary files aren't resolved.  Is this a
possibility?  Is there a way to check this?

Thanks,
Matt

-Original Message-
From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 19, 2006 10:00 AM
To: Pettis, Matthew (TLR Corp)
Cc: [EMAIL PROTECTED]; vim@vim.org
Subject: Re: Newbie notation question: hotkeys

[EMAIL PROTECTED] wrote:
> The first two have 'no mapping found' as their response, and the last 
> command has:
> 
> n  \ups  :call Perl_Handle()
> n  \lps  :call Perl_Handle() 
> 
> 
> 
> -Original Message-
> From: Yakov Lerner [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 19, 2006 9:22 AM
> To: Pettis, Matthew (TLR Corp)
> Cc: vim@vim.org
> Subject: Re: Newbie notation question: hotkeys
> 
> On 6/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> The backslash key does work in insert mode... It is right above my 
>> 'ENTER' key on my keyboard.  In insert mode, it behaves like any 
>> other
> 
>> ascii character typed from the keyboard.
> 
> Try the following commands:
>   :map \cu
>   :map \c
>   :map \
> and send us output of each of these three commands.
> 
> Yakov
> 
> 
> 

As mentioned under
http://lug.fh-swf.de/vim/vim-doc/perlsupport.html#perlsupport-usage-vim
, you need to use \lps in order to define the mappings starting \c . 
Conversely, \ups undefines them.


Best regards,
Tony.


RE: Newbie notation question: hotkeys

2006-06-19 Thread matt.pettis
Ok, so I assume this means to type '\lps' in normal mode in Vim... I
did, and then retried ':map \cu', and got the same 'no mapping found'
message.  Was this the correct procedure?

Thanks,
Matt 

-Original Message-
From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 19, 2006 10:00 AM
To: Pettis, Matthew (TLR Corp)
Cc: [EMAIL PROTECTED]; vim@vim.org
Subject: Re: Newbie notation question: hotkeys

[EMAIL PROTECTED] wrote:
> The first two have 'no mapping found' as their response, and the last 
> command has:
> 
> n  \ups  :call Perl_Handle()
> n  \lps  :call Perl_Handle() 
> 
> 
> 
> -Original Message-
> From: Yakov Lerner [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 19, 2006 9:22 AM
> To: Pettis, Matthew (TLR Corp)
> Cc: vim@vim.org
> Subject: Re: Newbie notation question: hotkeys
> 
> On 6/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> The backslash key does work in insert mode... It is right above my 
>> 'ENTER' key on my keyboard.  In insert mode, it behaves like any 
>> other
> 
>> ascii character typed from the keyboard.
> 
> Try the following commands:
>   :map \cu
>   :map \c
>   :map \
> and send us output of each of these three commands.
> 
> Yakov
> 
> 
> 

As mentioned under
http://lug.fh-swf.de/vim/vim-doc/perlsupport.html#perlsupport-usage-vim
, you need to use \lps in order to define the mappings starting \c . 
Conversely, \ups undefines them.


Best regards,
Tony.


Re: Newbie notation question: hotkeys

2006-06-19 Thread A.J.Mechelynck

[EMAIL PROTECTED] wrote:

The first two have 'no mapping found' as their response, and the last
command has:

n  \ups  :call Perl_Handle()
n  \lps  :call Perl_Handle() 




-Original Message-
From: Yakov Lerner [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 19, 2006 9:22 AM

To: Pettis, Matthew (TLR Corp)
Cc: vim@vim.org
Subject: Re: Newbie notation question: hotkeys

On 6/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
The backslash key does work in insert mode... It is right above my 
'ENTER' key on my keyboard.  In insert mode, it behaves like any other



ascii character typed from the keyboard.


Try the following commands:
  :map \cu
  :map \c
  :map \
and send us output of each of these three commands.

Yakov





As mentioned under 
http://lug.fh-swf.de/vim/vim-doc/perlsupport.html#perlsupport-usage-vim 
, you need to use \lps in order to define the mappings starting \c . 
Conversely, \ups undefines them.



Best regards,
Tony.


RE: Newbie notation question: hotkeys

2006-06-19 Thread matt.pettis
The first two have 'no mapping found' as their response, and the last
command has:

n  \ups  :call Perl_Handle()
n  \lps  :call Perl_Handle() 



-Original Message-
From: Yakov Lerner [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 19, 2006 9:22 AM
To: Pettis, Matthew (TLR Corp)
Cc: vim@vim.org
Subject: Re: Newbie notation question: hotkeys

On 6/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> The backslash key does work in insert mode... It is right above my 
> 'ENTER' key on my keyboard.  In insert mode, it behaves like any other

> ascii character typed from the keyboard.

Try the following commands:
  :map \cu
  :map \c
  :map \
and send us output of each of these three commands.

Yakov


Re: Newbie notation question: hotkeys

2006-06-19 Thread Yakov Lerner

On 6/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

The backslash key does work in insert mode... It is right above my
'ENTER' key on my keyboard.  In insert mode, it behaves like any other
ascii character typed from the keyboard.


Try the following commands:
 :map \cu
 :map \c
 :map \
and send us output of each of these three commands.

Yakov


RE: Newbie notation question: hotkeys

2006-06-19 Thread matt.pettis
The backslash key does work in insert mode... It is right above my
'ENTER' key on my keyboard.  In insert mode, it behaves like any other
ascii character typed from the keyboard. 

-Original Message-
From: Yakov Lerner [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 19, 2006 9:07 AM
Cc: vim@vim.org
Subject: Re: Newbie notation question: hotkeys

On 6/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Thanks for the response from both of you... Sadly the backslash isn't 
> working... I'm on a standard QWERTY keyboard in the U.S I'm not 
> sure what the rest of the specs for the keyboard are, but it has the 
> F1-F12 keys and a 'Windows' key on the lower left, as well as ESC,
ALT, Ctrl...
> Does that help anybody/anything?

Does backslash key work in insert mode in vim ? Does it work in other
applications ? Is it present on the keyboard ?

Yakov



> -Original Message-
> From: Yakov Lerner [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 16, 2006 2:41 AM
> To: A.J.Mechelynck
> Cc: Pettis, Matthew (TLR Corp); vim@vim.org
> Subject: Re: Newbie notation question: hotkeys
>
> On 6/16/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:
> > [EMAIL PROTECTED] wrote:
> > > ex: in describing hotkeys, they use:
> > > ...
> > > \cl Line End Comment
> > > \cf Frame Comment
> > > \cu Function Description
> > > \ch File Header (*.pl)
>
> > I believe the backslash
> > represents a backslash.
>
> Indeed. The rare case when backslash represents a backslash :-)
>
> For \ch, for exampe, you need to press 3 keys in quick
> sequence: 1. backslash 2. c 3 h.
>
> If you make excessive delays between these keys, mappnig will not 
> execute. :help ttimeout, :help timeout
>
> Yakov
>


Re: Newbie notation question: hotkeys

2006-06-19 Thread Yakov Lerner

On 6/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Hi All,

Thanks for the response from both of you... Sadly the backslash isn't
working... I'm on a standard QWERTY keyboard in the U.S I'm not sure
what the rest of the specs for the keyboard are, but it has the F1-F12
keys and a 'Windows' key on the lower left, as well as ESC, ALT, Ctrl...
Does that help anybody/anything?


Does backslash key work in insert mode in vim ? Does it
work in other applications ? Is it present on the keyboard ?

Yakov




-Original Message-
From: Yakov Lerner [mailto:[EMAIL PROTECTED]
Sent: Friday, June 16, 2006 2:41 AM
To: A.J.Mechelynck
Cc: Pettis, Matthew (TLR Corp); vim@vim.org
Subject: Re: Newbie notation question: hotkeys

On 6/16/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > ex: in describing hotkeys, they use:
> > ...
> > \cl Line End Comment
> > \cf Frame Comment
> > \cu Function Description
> > \ch File Header (*.pl)

> I believe the backslash
> represents a backslash.

Indeed. The rare case when backslash represents a backslash :-)

For \ch, for exampe, you need to press 3 keys in quick
sequence: 1. backslash 2. c 3 h.

If you make excessive delays between these keys, mappnig will not
execute. :help ttimeout, :help timeout

Yakov



RE: Newbie notation question: hotkeys

2006-06-19 Thread matt.pettis
Hi All,

Thanks for the response from both of you... Sadly the backslash isn't
working... I'm on a standard QWERTY keyboard in the U.S I'm not sure
what the rest of the specs for the keyboard are, but it has the F1-F12
keys and a 'Windows' key on the lower left, as well as ESC, ALT, Ctrl...
Does that help anybody/anything?

Thanks,
Matt


-Original Message-
From: Yakov Lerner [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 16, 2006 2:41 AM
To: A.J.Mechelynck
Cc: Pettis, Matthew (TLR Corp); vim@vim.org
Subject: Re: Newbie notation question: hotkeys

On 6/16/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > ex: in describing hotkeys, they use:
> > ...
> > \cl Line End Comment
> > \cf Frame Comment
> > \cu Function Description
> > \ch File Header (*.pl)

> I believe the backslash
> represents a backslash.

Indeed. The rare case when backslash represents a backslash :-)

For \ch, for exampe, you need to press 3 keys in quick
sequence: 1. backslash 2. c 3 h.

If you make excessive delays between these keys, mappnig will not
execute. :help ttimeout, :help timeout

Yakov


RE: Newbie notation question: hotkeys

2006-06-19 Thread matt.pettis
Oh, I can't remember if I said this, but I am running the v7.0 on
WindowsXP... 

-Original Message-
From: Yakov Lerner [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 16, 2006 2:41 AM
To: A.J.Mechelynck
Cc: Pettis, Matthew (TLR Corp); vim@vim.org
Subject: Re: Newbie notation question: hotkeys

On 6/16/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > ex: in describing hotkeys, they use:
> > ...
> > \cl Line End Comment
> > \cf Frame Comment
> > \cu Function Description
> > \ch File Header (*.pl)

> I believe the backslash
> represents a backslash.

Indeed. The rare case when backslash represents a backslash :-)

For \ch, for exampe, you need to press 3 keys in quick
sequence: 1. backslash 2. c 3 h.

If you make excessive delays between these keys, mappnig will not
execute. :help ttimeout, :help timeout

Yakov


Re: Newbie notation question: hotkeys

2006-06-16 Thread Yakov Lerner

On 6/16/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:

[EMAIL PROTECTED] wrote:
> ex: in describing hotkeys, they use:
> ...
> \cl Line End Comment
> \cf Frame Comment
> \cu Function Description
> \ch File Header (*.pl)



I believe the backslash
represents a backslash.


Indeed. The rare case when backslash represents a backslash :-)

For \ch, for exampe, you need to press 3 keys in quick
sequence: 1. backslash 2. c 3 h.

If you make excessive delays between these keys, mappnig
will not execute. :help ttimeout, :help timeout

Yakov


Re: Newbie notation question: hotkeys

2006-06-15 Thread A.J.Mechelynck

[EMAIL PROTECTED] wrote:
Hi, 



I found a great perlsupport addon for vim, and love it so far.  I am 
trying to figure out how to use the hotkeys, but cannot figure out how 
to translate the notation into keystrokes.  can anyone walk me through 
what is meant by the hotkey definitions at: 
http://lug.fh-swf.de/vim/vim-doc/perlsupport.html#perlsupport-usage-vim 



ex: in describing hotkeys, they use: 
... 
\cl Line End Comment 
\cf Frame Comment 
\cu Function Description 
\ch File Header (*.pl) 
... 



what keystroke does the backslash represent? 



Thanks, 
Matt 





  
I'm not familiar with that custom plugin, but I believe the backslash 
represents a backslash. Which exact keystroke you must hit to produce 
it, at which position in your keyboard, may depend on which national 
keyboard leyout you are using. On my Belgian-French AZERTY keyboard, a 
backslash is produced by hitting the AltGr key together with the key at 
bottom left, between Shift and W, which has the symbols < > \ on it.



Best regards,
Tony.