Live data from Hacker News

A Good Vimrc

dougblack.io

81–90 of 178 posts

Re: A Good Vimrc

#81

Disabling the search highlight seems like a rather lowly use for leader+space. Great guide though, didn't know about quite a few options in here, wildmenu is great. I switched to vim from subl about a month ago - it took a bit of getting used to but I'm loving it now. I still use subl for some multi cursor wizardry but that's less and less common now. I found the disabling the arrow keys in normal mode was the point…

Author here.

Agreed it sounds like a poor use at first blush. I lean on search for navigation frequently enough that having a super convenient :noh binding really works for me.

Use whatever you want though!

Re: A Good Vimrc

#82

Earlier quoted context omitted.

Is that article serious? I appreciate that GP's post is atrociously misguided but that article can't be serious can it? Are there really people out there who believe this? I had a look at this guy's other articles and it looks like the trashiest of linkbaits. "Reddit's Terrorists Have Won". "How MRAs Killed the World". "The Big Business of Internet Bigotry". Author might be overcompensating for something... Edit: Too…

Arthur Chu is a rather... special case. Stay far away from his Twitter if you value your sanity and faith in humanity.

I've never heard of him before today, FWIW, but you did get me to google his profile - what with your reverse psychology ;-) - and... well, it's not that bad. It's a pretty standard twitter profile for someone who thinks having 25k followers makes him the voice of god... but I've seen a lot worse on twitter than merely misguided people.

Regardless, I genuinely don't understand the appeal of outrage-writing over subjects that simply do not concern you. For example, I'm straight but I'm also a proponent of gay rights - does that give me any right to speak "on behalf" of gays? Isn't the entire "I'm not [gay/black/a woman] but..." ideology of people stealing other people's voices exactly the reason some countries or communities have societal problems with various minorities?

Re: A Good Vimrc

#83
post #27

Earlier quoted context omitted.

Vim's default are indeed dumb, but what you described is not a vim-specific problem. Walk into any room full of coders and try to use their computers; you'll discover tons of weirdness that can't be explained by anything except by a desire to be treated like a princess.* Things like rebinding basic shortcuts, reversing the scroll direction (Mac users will get this), swapping Cmd/Ctrl, using some obscure shell or even…

> that can't be explained by anything except by a desire to be treated like a princess Do you mean a desire to be more efficient? Am I some kind of princess because I decided to use a different keyboard layout than the default? That I decided to learn a different language than the one I was told to learn in school? That I wanted to install a different operating system than the one that came with my computer? Your com…

>Am I some kind of princess because I decided to use a different keyboard layout than the default?

Maybe you just bought into some myth:

https://www.utdallas.edu/~liebowit/keys1.html

Re: A Good Vimrc

#84
post #70

Earlier quoted context omitted.

You may personally be more efficient but as a team or class our overall efficiency drops by being different. Now I'd argue that the class is more important than you personally. We can agree that it matters a lot less what your own personal setup is as long as it saving stuff in the same format but I wouldn't say it doesn't matter at all. As soon as someone asks you for a bit of help you're going to be slowed down by…

It isn't just writing code faster, but also navigating (thus comprehending) faster, and in some cases writing code with less errors.

Has this "faster" thing been measured and profiled scientifically in some kind of A/B testing?

Or it's just based on subjective feelings and cargo cult?

Re: A Good Vimrc

#85
post #49

Rebinding jk to escape because escape is too far away seemed like a fairly ugly hack to me, especially because you can't type it anymore without waiting. Why not simply rebind caps lock to escape? Caps lock is used awfully little, considering how prominent its position on the keyboard is. On Linux, you can rebind it by adding setxkbmap -option caps:escape to your .profile. If instead of an additional escape you prefe…

Instead of remapping keys, I've always used Ctrl-[ for escape.

Re: A Good Vimrc

#86

Earlier quoted context omitted.

Arthur Chu is a rather... special case. Stay far away from his Twitter if you value your sanity and faith in humanity.

I've never heard of him before today, FWIW, but you did get me to google his profile - what with your reverse psychology ;-) - and... well, it's not that bad. It's a pretty standard twitter profile for someone who thinks having 25k followers makes him the voice of god... but I've seen a lot worse on twitter than merely misguided people. Regardless, I genuinely don't understand the appeal of outrage-writing over subje…

I guess that's part of the reason I hold him in such contempt- a lot of his comments have made their way into my Twitter feed, and I've yet to see something that wasn't either directly advocating irrationality (c.f. https://archive.is/xfjyi), blatantly speaking on behalf of the supposedly marginalized, or making uninformed statements on something or other.

No intelligent being should ever have the right to speak "on behalf of" any other intelligent being without their direct approval, any other standard is massively insulting.

Re: A Good Vimrc

#87
post #64

Earlier quoted context omitted.

I use 'jf' instead of 'jk', so I can type "Dijkstra" occasionally, not to mention they're both on the home row, under your index fingers, typically have physical nubs on the keys, and no words in any language I can find contain the letters 'jf'.

What about IKEA names?

Did you know that IKEA names tend to be names of towns and places in Sweden/Norway? So if IKEA names have jf then Swedish/Norwegian must have that letter combo as well..

Re: A Good Vimrc

#88
post #64

Earlier quoted context omitted.

I use 'jf' instead of 'jk', so I can type "Dijkstra" occasionally, not to mention they're both on the home row, under your index fingers, typically have physical nubs on the keys, and no words in any language I can find contain the letters 'jf'.

What about IKEA names?

That's when I switch over to emacs and ikea-mode.

Re: A Good Vimrc

#89
post #20

I don't use vim as my go to editor so I may be asking a silly question; does it just use idiotic defaults or something? I've only met a couple 'vim users' who could just hop onto someone else's vim setup and be productive, and I've never met a single vim user who could use someone else's setup without making comments about everything being different. I guess the question is do people modify vim cause they can or caus…

The default vim config is pretty barebones. Actually, one of the main goals of Neovim[1] is to provide better defaults[2], such has syntax highlighting. [1] https://neovim.io/ [2] https://github.com/neovim/neovim/issues/276

The current defaults discussion is at https://github.com/neovim/neovim/issues/2676.

Re: A Good Vimrc

#90

I don't use vim as my go to editor so I may be asking a silly question; does it just use idiotic defaults or something? I've only met a couple 'vim users' who could just hop onto someone else's vim setup and be productive, and I've never met a single vim user who could use someone else's setup without making comments about everything being different. I guess the question is do people modify vim cause they can or caus…

I think of vim almost as two separate editors. (1) my setup which is customised exactly like I like it and borders onto a IDE and (2) default setup which I can happily use to edit a few config files.
Post reply on HN