🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
21 messages
21 total messages Started by Desmond Coughlan Tue, 16 Nov 1999 00:00
vi doesn't like my numeric keypad
#54185
Author: Desmond Coughlan
Date: Tue, 16 Nov 1999 00:00
21 lines
1320 bytes
I have a little problem with my numeric keypad.  Or rather, with vi's 
accepting it.

In a console, it works fine, but when I run slrn in an xterm, with vi as
the editor, and I use the numeric keypad, this happens: 

q
I start typing here ... and type the number 

That was the number one I typed.

Is this normal?

Thanks.  :-)

-- 
Desmond Coughlan		|Administrateur Syst�me
desmond@coughlan.net		|UNIX, Linux, NT
http://212.198.64.228/

Re: vi - which version? Check ":version"!
#54131
Author: Desmond Coughlan
Date: Tue, 16 Nov 1999 00:00
15 lines
1458 bytes
Sven Guckes <guckes@math.fu-berlin.de> wrote: 

> > > "vi -g"?  Are you sure you are using plain vanilla vi?
> > Dunno, man ... or das weiss ich nicht, as they say ...

> Well, as they say:  "If in doubt - check ':version'!"

1.79

-- 
Desmond Coughlan		|Administrateur Syst�me
desmond@coughlan.net		|UNIX, Linux, NT
http://212.198.64.228/

Re: vi doesn't like my numeric keypad
#54134
Author: Desmond Coughlan
Date: Tue, 16 Nov 1999 00:00
18 lines
1356 bytes
Randy Charles Ford <randy.c.ford@bridge.bellsouth.com> wrote: 

> > I have a little problem with my numeric keypad.  Or rather, with vi's
> > accepting it.
> > 
> > In a console, it works fine, but when I run slrn in an xterm, with vi 
> > as the editor, and I use the numeric keypad, this happens:

> What is your $TERM set to?

xterm.

-- 
Desmond Coughlan                    |System Administrator
desmond@coughlan.net                |UNIX, Linux, NT
http://212.198.64.228/

Re: vi doesn't like my numeric keypad -> switch to vi clone!
#54136
Author: Sven Guckes
Date: Tue, 16 Nov 1999 00:00
30 lines
1959 bytes
* Desmond Coughlan <desmond@tortue.coughlan.net>:
> What happened, is that I started to type 'Today is day', and when I
> hit the key '1' on my numeric keypad, it opened a newline, and
> inserted the letter 'q', and then placed the cursor on the line
> above the q that had just been inserted.  The number '6' caused a
> 'v' to be printed, and then the rest of the phrase followed the 'v'.
> That's with vi.

That's vi for you.  ;-)

> I tried to reply to your post using vim (version 5.5.49, according
> to the install), and the same happened, only worse: in insert mode,
> if I press any of the arrow keys before I remember to hit ESC to put
> me into command mode, whole lines open up and control characters are
> inserted.

I can use the arrow keys in insert mode without any problems.  (vim-5.5)
*shrug*

> As a matter of interest, here is the relevant line from my .slrnrc
> 
> % Command used to invoke editor.  In the following example, %s represents
> % the file name and %d represents the starting line number
> set editor_command "vi '%s' -g %d -tmp"

"vi -g"?  Are you sure you are using plain vanilla vi?

Sven

Re: vi doesn't like my numeric keypad
#54138
Author: Randy Charles Ford
Date: Tue, 16 Nov 1999 00:00
16 lines
1243 bytes
Desmond Coughlan wrote:
> 
> I have a little problem with my numeric keypad.  Or rather, with vi's
> accepting it.
> 
> In a console, it works fine, but when I run slrn in an xterm, with vi 
> as the editor, and I use the numeric keypad, this happens:

What is your $TERM set to?

-- 
randy
randy.c.ford@bridge.bellsouth.com
I speak only for myself.

Re: vi documentation -> Vi Pages
#54140
Author: Desmond Coughlan
Date: Tue, 16 Nov 1999 00:00
19 lines
1795 bytes
Sven Guckes <guckes@math.fu-berlin.de> wrote: 

> > > Btw, you'll be a LOT faster when you learn vi
> > > enough to not have a need for any extra keys.

> > Well I treated myself to a copy of the O'Reilly UNIX CD Bookshelf,
> > which contains 'Learning vi' ... so I'm getting there.  :-)

> Good boy.  Now surf to the page in my signature and find some more
> docs on Vi.  Read them all - there will be a test next Monday. ;-)

LOL ... been there, man.  Even bookmarked it, and printed it out.  :-)

-- 
Desmond Coughlan		|Administrateur Syst�me
desmond@coughlan.net		|UNIX, Linux, NT
http://212.198.64.228/

Re: vi doesn't like my numeric keypad -> switch to vi clone!
#54148
Author: Desmond Coughlan
Date: Tue, 16 Nov 1999 00:00
33 lines
2102 bytes
Sven Guckes <guckes@math.fu-berlin.de> wrote: 

[snip]

> > I tried to reply to your post using vim (version 5.5.49, according
> > to the install), and the same happened, only worse: in insert mode,
> > if I press any of the arrow keys before I remember to hit ESC to put
> > me into command mode, whole lines open up and control characters are
> > inserted.

> I can use the arrow keys in insert mode without any problems.  (vim-5.5)
> *shrug*

Strange ... tell you what ... I shall reenable vim and try to respond to 
your post ...

> > As a matter of interest, here is the relevant line from my .slrnrc
> > 
> > % Command used to invoke editor.  In the following example, %s represents
> > % the file name and %d represents the starting line number
> > set editor_command "vi '%s' -g %d -tmp"

> "vi -g"?  Are you sure you are using plain vanilla vi?

Dunno, man ... or das weiss ich nicht, as they say ...


-- 
Desmond Coughlan		|Administrateur Syst�me
desmond@coughlan.net		|UNIX, Linux, NT
http://212.198.64.228/

Re: vim and arrow keys
#54153
Author: Sven Guckes
Date: Tue, 16 Nov 1999 00:00
21 lines
1670 bytes
* Desmond Coughlan <desmond@tortue.coughlan.net>:
> > I can use the arrow keys in insert mode without any problems.  (vim-5.5)
> Nope ... I tried to respond in vim, but none of the arrow keys works.
> I can turn off NUM LOCK and get them to work, but that's a bit
> pointless.  In addition, the DEL and backspace keys don't work.

	:help fix-del

> I'm getting used to vi now, and can move around in it quite fast;
> if I could get this sorted out, it would be a great help.
> If I have to change the thingy .. in my .slrnrc, so be it,
> but I want my arrow keys !!!   :-)))

"works for me"  :-)

Btw, you'll be a LOT faster when you learn vi
enough to not have a need for any extra keys.

Sven  ["trust me on the sunscreen" etc]

Re: vi doesn't like my numeric keypad -> switch to vi clone!
#54154
Author: Desmond Coughlan
Date: Tue, 16 Nov 1999 00:00
25 lines
1793 bytes
Sven Guckes <guckes@math.fu-berlin.de> wrote: 

[snip]

> I can use the arrow keys in insert mode without any problems.  (vim-5.5)
> *shrug*

Nope ... I tried to respond in vim, but none of the arrow keys works.  I
can turn off NUM LOCK and get them to work, but that's a bit pointless.  In
addition, the DEL and backspace keys don't work.

I'm getting used to vi now, and can move around in it quite fast; if I could
get this sorted out, it would be a great help.  If I have to change the
thingy (stop me if I'm being too technical ...  ;-)) in my .slrnrc, so be
it, but I want my arrow keys !!!   :-)))

D.


-- 
Desmond Coughlan		|Administrateur Syst�me
desmond@coughlan.net		|UNIX, Linux, NT
http://212.198.64.228/

Re: vi - which version? Check ":version"!
#54163
Author: Sven Guckes
Date: Tue, 16 Nov 1999 00:00
15 lines
1505 bytes
* Desmond Coughlan <desmond@tortue.coughlan.net>:
> > "vi -g"?  Are you sure you are using plain vanilla vi?
> Dunno, man ... or das weiss ich nicht, as they say ...

Well, as they say:  "If in doubt - check ':version'!"

Sven

-- 
Sven Guckes@math.fu-berlin.de - using Vi "Version SVR3.1" on SUN 4.1.3 [971205]
The VI Pages:  http://www.math.fu-berlin.de/~guckes/vi/  All about VI clones!
calvin, elvis,  elwin, javi, lemmy, nvi,   pvic,| BBstevie, MKS vi, OAK Hill Vi,
stevie, trived, vile,  vim,  vip,   winvi, xvi. | Watcom-Vi, xemacs "viper mode"

Re: vi doesn't like my numeric keypad -> switch to vi clone!
#54170
Author: Sven Guckes
Date: Tue, 16 Nov 1999 00:00
23 lines
1598 bytes
* Desmond Coughlan <desmond@tortue.coughlan.net>:
> I have a little problem with my numeric keypad.
> Or rather, with vi's accepting it.
> In a console, it works fine, but when I run slrn in an xterm,
> with vi as the editor, and I use the numeric keypad, this happens:
> q
> I start typing here ... and type the number
> 
> That was the number one I typed.
> Is this normal?

Huh?  What number?  Anyway, which vi is that?  Dont answer that.
Please - use a vi clone!  Elvis, nvi, vim - to name the most popular.

Sven

-- 
Sven Guckes@math.fu-berlin.de - using Vi "Version SVR3.1" on SUN 4.1.3 [971205]
The VI Pages:  http://www.math.fu-berlin.de/~guckes/vi/  All about VI clones!
calvin, elvis,  elwin, javi, lemmy, nvi,   pvic,| BBstevie, MKS vi, OAK Hill Vi,
stevie, trived, vile,  vim,  vip,   winvi, xvi. | Watcom-Vi, xemacs "viper mode"

Re: vi ":version?" -> 1.79 -> nvi
#54176
Author: Mike Dowling
Date: Tue, 16 Nov 1999 00:00
55 lines
3191 bytes
On 16 Nov 1999 15:58:26 GMT, Desmond Coughlan <desmond@tortue.coughlan.net> wrote:
>Sven Guckes <guckes@math.fu-berlin.de> wrote: 
>
>> > > Alright - then you have "nvi-1.79" as your default vi.

I followed this little discussion.  My guess is that you are using some
variant of Linux, probably SuSe.

Anyway, I use nvi, and it has no difficulty with the number pad
characters (but it does have problems with Umlauts, whereas vim does
not, but vim comes with all the graphical hoohaa so if I use vim, I
might as well use emacs).  So your problem does not lie with your news
reader, and almost certainly does not lie with vi.  I suspect your
keyboard.

Does this happen in text mode, or X11?

In text mode I could understand it, as most distributions as far as I
can tell do not expect people to use that truly great text mode, and so
leave it unconfigured.  I think the correct utility to use is
kbd-1.01wip.tar.gz (I won't swear it, as it is a while since I have done
this).  You have to tell your system what kind of a keyboard you have.

Another nice little advantage of this package is that you can configure
it to produce '�' by successively  pressing the keys C-. " a.

If this happens in X11, then your /etc/XF86Config is screwed up.  Do you
have something like

XkbModel        "pc101"

in your keyboard section?

P.S.
I confess never to have configured Linux to work on strange keyboards
like the German one, where useless characters like � are easy to get at,
and useful ones like /, \, ', |, etc are impossible to get at.

I note however that German keyboards require entries like
XkbSymbols      "us(pc101)"
XkbModel        "pc101"
XkbLayout       "de"

Check the X11 documentation.

Cheers,
  Mike Dowling

-- 
My email address mikeN@moocow.math.tu-bs.de above is a valid email address.
It is, in fact, a sendmail alias; the digit 'N' is incremented regularly.
Spammed aliases will be deleted.  Currently, mike[5,7-9,10,12,13,16-19]
have been deleted.  If email to mikeN bounces, try mikeN+1.

Re: vi documentation -> Vi Pages
#54180
Author: Sven Guckes
Date: Tue, 16 Nov 1999 00:00
18 lines
1693 bytes
* Desmond Coughlan <desmond@tortue.coughlan.net>:
> > Btw, you'll be a LOT faster when you learn vi
> > enough to not have a need for any extra keys.
> Well I treated myself to a copy of the O'Reilly UNIX CD Bookshelf,
> which contains 'Learning vi' ... so I'm getting there.  :-)

Good boy.  Now surf to the page in my signature and find some more
docs on Vi.  Read them all - there will be a test next Monday. ;-)

Sven

-- 
Sven Guckes@math.fu-berlin.de   http://www.math.fu-berlin.de/~guckes/vi/#docs
VI Documentation in plain text and HTML: Command Chart, Command Reference,
Reference Manual & Vi Introduction, Vi FAQ, using the VI Editor,
Vi Tutorial, as well as some texts in French, German, and Greek.

Re: vi ":version?" -> 1.79 -> nvi
#54182
Author: Sven Guckes
Date: Tue, 16 Nov 1999 00:00
34 lines
2107 bytes
* Desmond Coughlan <desmond@tortue.coughlan.net>:
> > Alright - then you have "nvi-1.79" as your default vi.
> Yeah ... and ... er ... yeah ... kannst Du mir helfen?

What was the question again?  "How to use Vim?"

> > > Desmond Coughlan		|Administrateur Syst�me
> > > desmond@coughlan.net		|UNIX, Linux, NT
> > > http://212.198.64.228/
> > "Hey, admin - your sig has tab damage!"
> It does?  It shows up fine on my readers ...

It wont show up ok with other tabstop settings
and also when the signature gets quoted.  See?
http://www.math.fu-berlin.de/~guckes/afw/#tabdamage !

> > And get a name for your web server! ;-)
> I would if my ISP (http://www.paris.cybercable.fr/)
> would get off their butts and assign static IPs ...

Well, f*ck them.  Get your IP and get someone to host you domain.

> I'd trust NT as far as I could throw
> a Data General Clariion Xeon server

yeah, right

Are we off topic yet?

Followup-To: comp.editors

Sven

Re: vi doesn't like my numeric keypad -> switch to vi clone!
#54189
Author: Desmond Coughlan
Date: Tue, 16 Nov 1999 00:00
44 lines
2554 bytes
Sven Guckes <guckes@math.fu-berlin.de> wrote: 

> > That was the number one I typed.
> > Is this normal?

> Huh?  What number?  Anyway, which vi is that?  Dont answer that.
> Please - use a vi clone!  Elvis, nvi, vim - to name the most popular.

OK, try this line.  I shall type the phrase 'Today is day 16 of the month'
(that worked, because I used the numbered keys on the main keyboard).

v of the month.
q
Today is day 

What happened, is that I started to type 'Today is day', and when I hit the 
key '1' on my numeric keypad, it opened a newline, and inserted the letter
'q', and then placed the cursor on the line above the q that had just been
inserted.  The number '6' caused a 'v' to be printed, and then the rest of 
the phrase followed the 'v'.

That's with vi.  I tried to reply to your post using vim (version 5.5.49,
according to the install), and the same happened, only worse: in insert 
mode, if I press any of the arrow keys before I remember to hit ESC to 
put me into command mode, whole lines open up and control characters are
inserted.

As a matter of interest, here is the relevant line from my .slrnrc

% Command used to invoke editor.  In the following example, %s represents
% the file name and %d represents the starting line number
set editor_command "vi '%s' -g %d -tmp"
% set editor_command "vim %s +%d -c ':0;/^$/+'"

The commented entry is the one I used two minutes ago, to try vim.

:-(    

--
Desmond Coughlan		|Administrateur Syst�me
desmond@coughlan.net		|UNIX, Linux, NT
http://212.198.64.228/

Re: vi ":version?" -> 1.79 -> nvi
#54193
Author: Desmond Coughlan
Date: Tue, 16 Nov 1999 00:00
51 lines
2361 bytes
Sven Guckes <guckes@math.fu-berlin.de> wrote: 

> > > Alright - then you have "nvi-1.79" as your default vi.
> > Yeah ... and ... er ... yeah ... kannst Du mir helfen?

> What was the question again?  "How to use Vim?"

Something like that, yeah ...

> > > "Hey, admin - your sig has tab damage!"

> > It does?  It shows up fine on my readers ...

> It wont show up ok with other tabstop settings
> and also when the signature gets quoted.  See?
> http://www.math.fu-berlin.de/~guckes/afw/#tabdamage !

So I see ... is it better now?

> > > And get a name for your web server! ;-)

> > I would if my ISP (http://www.paris.cybercable.fr/)
> > would get off their butts and assign static IPs ...

> Well, f*ck them. 

I would.  Especially the secretary on the second floor ... <ahem> !!

> Get your IP and get someone to host you domain.

:-)

> > I'd trust NT as far as I could throw
> > a Data General Clariion Xeon server

> yeah, right
> 
> Are we off topic yet?

A little, I think ...

> Followup-To: comp.editors

Reset ...

-- 
Desmond Coughlan                    |System Administrator
desmond@coughlan.net                |UNIX, Linux, NT
http://212.198.64.228/

Re: vi ":version?" -> 1.79 -> nvi
#54196
Author: Sven Guckes
Date: Tue, 16 Nov 1999 00:00
19 lines
1603 bytes
* Desmond Coughlan <desmond@tortue.coughlan.net>:
> > > > "vi -g"?  Are you sure you are using plain vanilla vi?
> > > Dunno, man ... or das weiss ich nicht, as they say ...
> > Well, as they say:  "If in doubt - check ':version'!"
> 1.79

Alright - then you have "nvi-1.79" as your default vi.

> -- 
> Desmond Coughlan		|Administrateur Syst�me
> desmond@coughlan.net		|UNIX, Linux, NT
> http://212.198.64.228/

"Hey, admin - your sig has tab damage!"
And get a name for your web server! ;-)

Sven

Re: vi ":version?" -> 1.79 -> nvi
#54199
Author: Desmond Coughlan
Date: Tue, 16 Nov 1999 00:00
33 lines
2175 bytes
Sven Guckes <guckes@math.fu-berlin.de> wrote: 

> > > > > "vi -g"?  Are you sure you are using plain vanilla vi?
> > > > Dunno, man ... or das weiss ich nicht, as they say ...
> > > Well, as they say:  "If in doubt - check ':version'!"

> > 1.79

> Alright - then you have "nvi-1.79" as your default vi.

Yeah ... and ... er ... yeah ... kannst Du mir helfen?

> > Desmond Coughlan		|Administrateur Syst�me
> > desmond@coughlan.net		|UNIX, Linux, NT
> > http://212.198.64.228/

> "Hey, admin - your sig has tab damage!"

It does?  It shows up fine on my readers ...

> And get a name for your web server! ;-)

I would if my ISP (http://www.paris.cybercable.fr/) would get off their
butts and assign static IPs ... as it is, their IPs are assigned using
DHCP under NT Server 4.0; I'd trust NT as far as I could throw a Data
General Clariion Xeon server ...  :-(

-- 
Desmond Coughlan		|Administrateur Syst�me
desmond@coughlan.net		|UNIX, Linux, NT
http://212.198.64.228/

Re: vim and arrow keys
#54200
Author: Desmond Coughlan
Date: Tue, 16 Nov 1999 00:00
27 lines
1817 bytes
Sven Guckes <guckes@math.fu-berlin.de> wrote: 

> 	:help fix-del

OK ... 

> > I'm getting used to vi now, and can move around in it quite fast;
> > if I could get this sorted out, it would be a great help.
> > If I have to change the thingy .. in my .slrnrc, so be it,
> > but I want my arrow keys !!!   :-)))

> "works for me"  :-)

It *is* damn fast, isn't it ..?  :-)

> Btw, you'll be a LOT faster when you learn vi
> enough to not have a need for any extra keys.

Well I treated myself to a copy of the O'Reilly UNIX CD Bookshelf, which
contains 'Learning vi' ... so I'm getting there.  :-)

-- 
Desmond Coughlan		|Administrateur Syst�me
desmond@coughlan.net		|UNIX, Linux, NT
http://212.198.64.228/

Re: vi ":version?" -> 1.79 -> nvi
#54221
Author: Desmond Coughlan
Date: Wed, 17 Nov 1999 00:00
56 lines
3061 bytes
Mike Dowling <mike2@MooCow.math.nat.tu-bs.de> wrote: 

> >> > > Alright - then you have "nvi-1.79" as your default vi.

> I followed this little discussion.  My guess is that you are using some
> variant of Linux, probably SuSe.

No, I'm running slrn on a FreeBSD workstation.

> Anyway, I use nvi, and it has no difficulty with the number pad
> characters (but it does have problems with Umlauts, whereas vim does
> not, but vim comes with all the graphical hoohaa so if I use vim, I
> might as well use emacs).  So your problem does not lie with your news
> reader, and almost certainly does not lie with vi.  I suspect your
> keyboard.
> 
> Does this happen in text mode, or X11?

In text mode, there is no problem; it's only under X that I have problems.

> In text mode I could understand it, as most distributions as far as I
> can tell do not expect people to use that truly great text mode, and so
> leave it unconfigured.  I think the correct utility to use is
> kbd-1.01wip.tar.gz (I won't swear it, as it is a while since I have done
> this).  You have to tell your system what kind of a keyboard you have.

I'm not sure that that's the problem.  I have a French keyboard, and under
Pine (for example) in X, I can use all the accents, including the Umlaut, if
need be. 

[snip]

> If this happens in X11, then your /etc/XF86Config is screwed up.  Do you
> have something like
> 
> XkbModel        "pc101"
> 
> in your keyboard section?

Here is the appropriate section:

Section "Keyboard"
   Protocol        "Standard"
   XkbRules        "xfree86"
   XkbModel        "pc102"
   XkbLayout       "fr"
EndSection

[snip]

-- 
Desmond Coughlan                    |System Administrator
desmond@coughlan.net                |UNIX, Linux, NT
http://212.198.64.228/

Re: vi doesn't like my numeric keypad -> switch to vi clone!
#54264
Author: Villy Kruse
Date: Thu, 18 Nov 1999 00:00
26 lines
1578 bytes
On 16 Nov 1999 14:22:50 GMT,
          Desmond Coughlan <desmond@tortue.coughlan.net> wrote:

>
>OK, try this line.  I shall type the phrase 'Today is day 16 of the month'
>(that worked, because I used the numbered keys on the main keyboard).
>
>v of the month.
>q
>Today is day 
>

Seen that a lot, and this is not realy a vi problem.

This is typical for TERM type vt100 and family.  Because the real vt100
has very few function keys the numeric keypad is converted into function
keys whenever you start a program using curses -- that includes vi.
I beleive it is the rmkx and smkx capability in terminfo that does it
which sends \E= and \E> to turn it on or off.



-- 
Villy

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads