Live data from Hacker News

Modeless Vim

github.com

391–398 of 398 posts

Re: Modeless Vim

#391

Earlier quoted context omitted.

> Remap the Escape key to CapsLock else you will never like vim (provided you are a normal person) I guess I'm not a normal person then? Never bothered doing the remapping and I've been an enthusiastic Vim user for a decade.

I don't know you but that is likely. Most people are not believers and when they find something inconvenient they abandon it. Most people do what most people are doing :-) That's not the case for me. I am a believer, I use Firefox, Signal and vim, not Chrome, WhatsApp or VsCode. And I like it that way. The problem with being a believer is that you tend to downplay issues and that can bite you sometimes. I know becaus…

Haha, yes, this is very true. I was the guy who gave a lunchtime lightning presentation on why to use Vim (TL;DR: automating repetitive actions using the . key, macros, :global, :normal etc etc) :)

I use jk to get out of Insert mode on my local machine, and ctrl-C on remote machines where I don't have my .vimrc.

Re: Modeless Vim

#392
post #320

Earlier quoted context omitted.

If you actually want to be pedantic, note that I did not say all countries, therefore my original statement was just as correct as your edit.

If YOU actually want to be pedantic, I was making the point that it's a North American thing, not a US thing.

> I was making the point that it's a North American thing

No you weren't. To use your style, if YOU want to play along and be pedantic, then your edit wasn't about North America, it was about just the U.S. and Canada.

Re: Modeless Vim

#393
post #324

Earlier quoted context omitted.

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.

You missed the point; Ctrl-C is never going to be "copy" in a terminal, since that shortcut is already in use. Cmd-C can work everywhere, but GUI applications on linux do not default to that.

> You missed the point; Ctrl-C is never going to be "copy" in a terminal, since that shortcut is already in use

My `stty intr ^X` disagrees

I've made Ctrl-C do copy paste in the terminal, even in vim, with a special function for wayland:

vnoremap call WLCopy()

Re: Modeless Vim

#394
post #331

Earlier quoted context omitted.

Helix is beginner friendly. It's keybindings make more sense than vim's.

Helix is wonderful. I did make one keybinding change: Switching in and out of Insert mode is CTRL-i so I don't have to wander off to the escape key so often.

I think Helix by default binds `Ctrl-[` to return to normal mode.

That was more convenient for me, especially as I remap my caps-lock key to CTRL system-wide.

Re: Modeless Vim

#395

Earlier quoted context omitted.

I just tried this on my laptop and it is the most uncomfortable thing I've done on a keyboard.

It's probably due to my shoddy description. You put your fingers into the touch typing homerow. Shift your left hand enough for the edge of your palm to be above the ctrl key. It might also be the base joint of your pinky, depending on the size of your hand. Now press that side down enough to activate the ctrl key while keeping your fingers on the homerow. It's like having an eleventh finger to control the keyboard.

I feel like i'll get carpal tunnel if i do this five times lol, your hands might be a lot smaller than mine

Re: Modeless Vim

#396
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.

Or if you hate modes, it’s like installing a Tesla motor in a car that was originally powered by the screaming souls of the damned :)

Re: Modeless Vim

#397
post #331

Earlier quoted context omitted.

Helix is wonderful. I did make one keybinding change: Switching in and out of Insert mode is CTRL-i so I don't have to wander off to the escape key so often.

I think Helix by default binds `Ctrl-[` to return to normal mode. That was more convenient for me, especially as I remap my caps-lock key to CTRL system-wide.

it’s not helix, ctrl-[ produces the same key code as escape and it works the same in a terminal (so it works in vi, emacs, etc)

Re: Modeless Vim

#398

I think it's funny how much emotional energy gets invested into any (neo)vim posts. But the energy is mostly people that never learned vim and feel super insecure about it. I'm not going to make the same mistake of judging this. If you are someone who has always hated vim and never want to touch it, go for it, this might make your day easier on some machine if you can load this repo really quick (although as others h…

>learn vim After starting the (neo)vim tutorial, all I could think about was if people who "learned" vim never learned how to edit text in a normal text/code editor. And I don't mean this in an inflammatory way. I mean: hjkl = Arrow keys b = Ctrl + Left w = Ctrl + Right df = Ctrl + Delete $d = Shift + End, Delete dd = Home, Shift + End, Delete 2 = just press the keyboard command twice?? ddp = Alt + Down ddkP = Alt +…

The bindings you mention are useful but unfortunately there are no CUA bindings for things like

  dt/   Delete text to the next slash.
  di(   Delete text inside parentheses.
  vi{y  Select and copy code inside braces.
  ]]    Jump to the next function.
  ))    Jump to the next sentence.
These are some of the things that make Vim/Evil stick for many folks once they begin using it in earnest.
Post reply on HN