Войти в систему

Home
    - Создать дневник
    - Написать в дневник
       - Подробный режим

LJ.Rossia.org
    - Новости сайта
    - Общие настройки
    - Sitemap
    - Оплата
    - ljr-fif

Редактировать...
    - Настройки
    - Список друзей
    - Дневник
    - Картинки
    - Пароль
    - Вид дневника

Сообщества

Настроить S2

Помощь
    - Забыли пароль?
    - FAQ
    - Тех. поддержка



Пишет superhuman ([info]superhuman)
@ 2018-04-22 22:17:00


Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Хотел vi(m) изучить, а то везде он фоллбэк, и вообще. Но раздражает раскладка hjkl для движения курсора. Должна быть jkl; - пальцы убирать из home row контрпродуктивно. Раз уж они налегают на продуктивность кейбордную.

Что-то в последнее время задумался над концепцией модальных редакторов и, вообще, программ. Какие-то ЮИ-наци её похоронили по факту. А концепция ведь не лишена смысла. Кажется, это правильный подход.

Да и вообще, в обычной типа-не-модальной программе, на самом деле, много мод. Для текстового редактора, например: капс лок, инсерт/оверврайт, язык, меню (альтом), да и мышка, наверное, - отдельный режим. Короче, курс на модальность надо взять.


(Читать комментарии) - (Добавить комментарий)


[info]phantom
2018-04-23 06:47 (ссылка)
Типичный ответ вимских ханжей. Если я пальцы буду уносить, чтобы курсор двигать, то я примерно с тем же успехом могу их уносить на обычные кнопки стрелок. Именно потому, что я "touch type", пальцы по дефолту лежат всегда на home row, и навигация удобна была бы именно если не двигать пальцы.

(Ответить) (Уровень выше) (Ветвь дискуссии)


(Анонимно)
2018-04-23 18:49 (ссылка)
I wouldn't qualify that as bigotry for there are practical reasons for this decision. ';' is used extensively to repeat last jump-to-occurence command while single position motion is generally discouraged as wasteful. Ideally you should use jump-to-occurrence or at least largest possible syntactic unit with motion command while single char position is obviously the smallest one.

(Ответить) (Уровень выше) (Ветвь дискуссии)


[info]phantom
2018-04-23 19:29 (ссылка)
Are you a native speaker? I could switch to English.

I found out the decision for hjkl placement in vi was historical. That's all to it:

- an ancient piece of hardware defined that stale layout for eternity. That holds to Esc and probably others, I didn't dig further. The other commands were mapped to whatever keys left, with an arbitrary semantic mnemonics.

Now, you say one-char movement keys are a waste. To that I can agree. Then why the hell are they holding a central place on the keyboard? Why not to allocate the place to the most useful / most often invoked strokes?

Keyboard layout must be optimized for efficiency. At least someone, preferably the original author should have thought about it more extensively. Well, that's as old as mammoth shit you'd say, but that doesn't mean people with sanity have to stick to it forever.

Luckily I don't have that vi layout brainwired yet. I gave it a thought today and decided I'd stick to "wasd" layout I used in first-person shooters. It's by the way not wasd, but sdfe that I have burned into my brain since the first FPS I played, and notice, consistent with the home row (...or maybe would try out asdf). Naturally, it would mean remapping the layout in whatever editor I'll give a try (probably kakoune) or perhaps sooner or later I'll devise mine. And naturally, these movements will navigate words or better - blocks.

(Ответить) (Уровень выше)


(Читать комментарии) -