Live data from Hacker News

Modeless Vim

github.com

321–330 of 398 posts

Re: Modeless Vim

#321

Earlier quoted context omitted.

See http://worrydream.com/refs/Tesler%20-%20A%20Personal%20Histo... (specifically the sidebar “How Modes Degrade Usability”) There’s also a sidebar “Objections to Modeless Editing and Cut/Copy-Paste”

My point was just that "modeful" isn't a word. Vim is a "modal editor." The article you cite does not include the word "modeful."

Ah, now I understand. My apologies.

Re: Modeless Vim

#323
post #316

Earlier quoted context omitted.

Emacs has something similar in which-key. Of course GUI apps have had pop-downs from the File-Edit-View-... row [since forever?] so that things like Alt+F will show contextual actions. But at least in the Emacs community people get blown away when someone makes such a basic addition.

In Emacs, you can also insert C-h in a key combination. So you can do the basic things like C-h k to pull up the help for a key combination C-h f for a function C-h v for a variable C-h m for currently active modes But you can also do things like this: C-c C-h to pull up every key combination that starts with C-c Emacs has excellent discoverability out of the box thanks to this.

Yeah I love how you can interrogate things like that.

Meanwhile, in GUI land: here’s fifteen screenshots carefully manually highlighted which shows you how to change your language to Turkish.

Regular GUI apps are just too rigid.

Re: Modeless Vim

#324
post #182

Earlier quoted context omitted.

If you use gnome/xfce: gsettings set org.gnome.desktop.interface gtk-key-theme "Emacs" xfconf-query -c xsettings -p /Gtk/KeyThemeName -s Emacs Try both commands.

Very cool! I also want to use Command (Super or Hyper?), which really improves keyboard shortcuts. Command + left/right = jump to beginning or end of line, Option + left/right = jump to beginning/end of word. I know you can do the same with Control + Shift, but some apps don't support it. Plus Cmd+c/x/v for copy/cut/paste works fine in terminals, I don't have to remember to "code switch" my shortcut "language". Cmd+B…

I just swap Ctrl and Caps Lock, much better.

setkbmap us -option ctrlL:swapcaps -option compose:rwin

You can place that command at XFCE's startup settings for applications.

Re: Modeless Vim

#325
post #37

Conceptually the reasons the author give for this (syntax highlighting and other features of vim outclass other terminal-based editors) make total sense. That said there's something absolutely defiling about this. It's like installing a V8 in a Tesla, or replacing the pumpkin in pumpkin pie. I love that it will make VIM more accessible for more people, but I hate how they do it. Kudos to the author.

It’s similar to preferring guitar hero because a real guitar has too many frets and too many chords to learn

More like learning the clavicord.

“But your fingers aren't touching the strings!”

Re: Modeless Vim

#326

My usual comment on any thread touching vim, as an answer to all hypothetical comments talking about how vim never clicked : Remap the Escape key to CapsLock else you will never like vim (provided you are a normal person) It's the most important key and you should punctuate all your inserts with it. So it'd better not be the key that's the furthest away from your fingers. The reason that's the case is an historical a…

> Remap the Escape key to CapsLock else you will never like vim (provided you are a normal person) I think this is great advice for EVERYONE, vim user or not. Someone else made this suggestion on HN some 8 years ago and I haven't looked back since. CapsLock is essentially useless for modern computing needs, but having a No/Cancel/Quit/Esc button immediately under your left pinky is fantastic. Your brain will get used…

If I remap CapsLock to Escape, then how will I enable cruise control for awesome mode?

But seriously, I have hitting escape muscle memory engrained, I cannot remap it to any key because I won't ever think to hit capslock even if it's ergonomically "better"

Re: Modeless Vim

#327

Earlier quoted context omitted.

Apparently coffee cake has no coffee in it so we really can’t believe anything anymore.

Oh but mine does… the glaze is powdered sugar and espresso.

This sounds good but not the kind of coffee cake I’m used to

Re: Modeless Vim

#328

I don't think this covers the main reason I only use vim occasionally: it is the only reasonable editor available over ssh by default on all VMs deployed in your typical org. Over there it usually has default settings, and it's not trivial to change configs or install other editors. Worthy attempt, looks cool, but I'm still stuck with having to learn the basics of moving a cursor around reasonably :(

Thankfully you can usually find nano installed, which is an order of magnitude superior to vi(m). If I'm in a shell I want an editor to get in, edit a couple of lines, and get out, which nano excels at.

Re: Modeless Vim

#329

> Instead of remembering cryptic commands I use vim and nothing about its commands are "cryptic" to me. You want to "go to definition"? You press "gd" as in "(g)o to (d)efinition". What's cryptic about this?

Are you serious? That's incredibly cryptic. The fact that you learned it doesn't make it intuitive for others.

Re: Modeless Vim

#330

Earlier quoted context omitted.

> Remap the Escape key to CapsLock else you will never like vim (provided you are a normal person) I think this is great advice for EVERYONE, vim user or not. Someone else made this suggestion on HN some 8 years ago and I haven't looked back since. CapsLock is essentially useless for modern computing needs, but having a No/Cancel/Quit/Esc button immediately under your left pinky is fantastic. Your brain will get used…

If I remap CapsLock to Escape, then how will I enable cruise control for awesome mode? But seriously, I have hitting escape muscle memory engrained, I cannot remap it to any key because I won't ever think to hit capslock even if it's ergonomically "better"

I thought that, remapped it, and it turned out to be incredibly easy to swap over. I think it's because it's so much nicer to use.
Post reply on HN