geekhack

geekhack Community => Keyboards => Topic started by: colomb on Thu, 25 June 2015, 08:14:41

Title: vi and emacs keyboards
Post by: colomb on Thu, 25 June 2015, 08:14:41
These two images came across my twitter feed. The first is the keyboard used by the designers of emacs, while the second is the board used by the designer of vi.
[attachimg=1]
[attachimg=2]
Title: Re: vi and emacs keyboards
Post by: tufty on Thu, 25 June 2015, 14:53:46
Vi was designed?  I thought it was a page fault gone sentient.
Title: Re: vi and emacs keyboards
Post by: Vibex on Thu, 25 June 2015, 14:57:43
looks about right

Vi was designed?  I thought it was a page fault gone sentient.

 :))
Title: Re: vi and emacs keyboards
Post by: Altis on Sat, 04 July 2015, 12:47:02
Vi was designed?  I thought it was a page fault gone sentient.

You'd think if it was designed, they'd have gotten the arrow keys right.

Left and Right make sense, but Up and Down should be switched. That way, the left-two keys go backwards (left/up) and the right-two go forwards (down/right).

It seems they picked them arbitrarily without too much thought. Just my $0.02 though.
Title: Re: vi and emacs keyboards
Post by: Vibex on Sat, 04 July 2015, 13:47:00
Vi was designed?  I thought it was a page fault gone sentient.

You'd think if it was designed, they'd have gotten the arrow keys right.

Left and Right make sense, but Up and Down should be switched. That way, the left-two keys go backwards (left/up) and the right-two go forwards (down/right).

It seems they picked them arbitrarily without too much thought. Just my $0.02 though.
Haha, wow. I thought I was the only one who felt this way. Glad to see someone else is likeminded.
Title: Re: vi and emacs keyboards
Post by: Smasher816 on Sat, 04 July 2015, 14:47:16
The real question is why did the original keyboard designers choose to put the arrows in that way. Afaik vi used hjkl simply because those keys already had labels for the arrows.
Title: Re: vi and emacs keyboards
Post by: mdszy on Sat, 04 July 2015, 15:07:35
Vi was designed?  I thought it was a page fault gone sentient.

You'd think if it was designed, they'd have gotten the arrow keys right.

Left and Right make sense, but Up and Down should be switched. That way, the left-two keys go backwards (left/up) and the right-two go forwards (down/right).

It seems they picked them arbitrarily without too much thought. Just my $0.02 though.

The J makes some sense because it looks like a down arrow, somewhat. If you squint and look at it from real far away, that is.
Title: Re: vi and emacs keyboards
Post by: KRKS on Sun, 05 July 2015, 01:48:34
The real question is why did the original keyboard designers choose to put the arrows in that way. Afaik vi used hjkl simply because those keys already had labels for the arrows.

Too much DDR I guess  ;)
Title: Re: vi and emacs keyboards
Post by: kennardsmith on Sun, 05 July 2015, 02:59:31
Vim user here. I find the weird arrow key arrangement works well for how I use vim.

I hardly ever use "h" and "l" to move around if ever, I'm usually jumping around a line by finding a character rather than holding down or hammering a letter to move my cursor toward a position. When I use "j" and "k" it's either to adjust my position after I jumped too far and more often to perform an action like deleting lines. I tend to use "j" way more than I use "k" in these instances.

I'm not sure if my brain adjusted to use "down" more often because "j" is under index finger or if "down" being under the index finger was a design choice by a keyboard manufacturer.

I hear to be a vim expert, you don't ever use hjkl at all :p

I got to get me some of those vi caps!
Title: Re: vi and emacs keyboards
Post by: rowdy on Sun, 05 July 2015, 03:03:51
Ha!  vi users can still navigate their files even on keyboards without any arrow keys :p
Title: Re: vi and emacs keyboards
Post by: Giorgio on Sun, 05 July 2015, 03:44:54
I find hjkl perfectly rational. In particular the down arrow - surely the most used - is where you rest the index finger, an easy to find key, because that's where the dash is.
Title: Re: vi and emacs keyboards
Post by: Altis on Sun, 05 July 2015, 16:09:17
I find hjkl perfectly rational. In particular the down arrow - surely the most used - is where you rest the index finger, an easy to find key, because that's where the dash is.

But with that logic... the middle finger is also dominant, and 'K' is easy to find by being the key right next to the one with the dash.

I still think that the logical grouping is to have the backwards-keys on the left and the forwards-keys both on the right, especially since I often use them together (moving down and across simultaneously).

Just my thoughts, though, and I realize that it isn't about to change now that it's been established.
Title: Re: vi and emacs keyboards
Post by: t888 on Sun, 05 July 2015, 18:22:05
These two images came across my twitter feed. The first is the keyboard used by the designers of emacs, while the second is the board used by the designer of vi.
(Attachment Link)
(Attachment Link)

Crazy to think that the Symbolics keyboard above could produce over 8000 different characters...
Title: Re: vi and emacs keyboards
Post by: Giorgio on Sun, 05 July 2015, 18:25:09
I woudn't say that the middle finger is also dominant. Sometimes, when browsing the web with firefox and the vimfx plugin, my hand rests on the keyboard, fully opened, and only the index finger is on the j keycap; plus, when you search for the correct position - maybe that you are not seated pefectly in front of the keyboard - you put the index finger on the j, and only after that you put the other fingers in the home position.

I find hjkl perfectly rational. In particular the down arrow - surely the most used - is where you rest the index finger, an easy to find key, because that's where the dash is.

But with that logic... the middle finger is also dominant, and 'K' is easy to find by being the key right next to the one with the dash.

I still think that the logical grouping is to have the backwards-keys on the left and the forwards-keys both on the right, especially since I often use them together (moving down and across simultaneously).

Just my thoughts, though, and I realize that it isn't about to change now that it's been established.
Title: Re: vi and emacs keyboards
Post by: againer on Thu, 09 July 2015, 08:22:52
I find hjkl perfectly rational. In particular the down arrow - surely the most used - is where you rest the index finger, an easy to find key, because that's where the dash is.

Thats why 60% keyboards and vim fits so well together.
Oh and the ESC button is not as far away as on a tkl.