Live data from Hacker News

History and effective use of Vim (2019)

begriffs.com

91–98 of 98 posts

Re: History and effective use of Vim (2019)

#91
post #6

I love vim. I am not one of those users who has a huge number of plugins and takes part in an extended eco-system that they perhaps do not fully understand -- for the last ~20 years of my life I have been trying to learn a little more vim each time I use it. I often don't, but it just has so many surprises that when I feel frustrated, I try to work out the "vimmish" way of doing things. Occasionally I give into tempt…

Am a similarly profiled (neo)vim user .. but without cat. Sometimes I catch strange letter combinations like "gqip" in my emails that baffle the recipients. Want vim keys everywhere!

There's an AutoHotkey script for that!

Re: History and effective use of Vim (2019)

#92
post #70
post #36

Earlier quoted context omitted.

That’s strange. I just tested it and both GVim on windows and vim on a vps linux terminal have no problem with going anywhere on a 170k long line. It lags a little but visually is fine. And just in case you missed it, you may gj gk to navigate visual lines or remap j, k (and , ) to gj gk to make that default. I have a genuine question why use nvim at all if it has such issues with presenting text in a window.

This is about _scrolling_ visual lines. Navigating them as you say, is just fine.

Ah, got it, right. Sorry for the noise!

Re: History and effective use of Vim (2019)

#93
post #58

Earlier quoted context omitted.

Unsolicited advice for scrolling without spamming j and k: - C-u and C-d to jump up/down - [ and ] to go prev/next empty line (I have a macro to clear empty spaces at the end of lines so this works well for jumping functions in code) - from the article: 50% to go the halfway point of a document - 100gg to go to line 100 - 100k to go 100 lines down Are there any more good ones? Edit: occurs to me that you might have r…

:1 to go to the top of the file, G to goto the bottom of the file

gg will take you up to the top as well

Re: History and effective use of Vim (2019)

#94

Earlier quoted context omitted.

This is me all the time. The worst is “kkk”. I can’t remember why I type it in vim (it’s muscle memory, and I’m not at a computer to try it out), but it has really bad connotations here in the US south, so… no bueno.

Can I ask what kkk means? I thought it meant that you were laughing like haha (a leas in Brazil) I didn't know it had bad connotations

[deleted]

Re: History and effective use of Vim (2019)

#96
post #81

Earlier quoted context omitted.

Unsolicited advice for scrolling without spamming j and k: - C-u and C-d to jump up/down - [ and ] to go prev/next empty line (I have a macro to clear empty spaces at the end of lines so this works well for jumping functions in code) - from the article: 50% to go the halfway point of a document - 100gg to go to line 100 - 100k to go 100 lines down Are there any more good ones? Edit: occurs to me that you might have r…

{ / } jump to start/end of the block. Between that and 20j and (blasphemy probably) just using the scroll wheel, that handles most of my scrolling needs.

I think I meant to write { and } (which is previous/next empty line) instead of [ and ] which can be combined like [( ]) or [{ ]} to go to the beginning and end of parentheses and curly brackets respectively. % is good for jumping between matching parenthesis... I wish there was something like this for *ml tags inbuilt (e.g., go to matching )

Re: History and effective use of Vim (2019)

#98
post #65

Earlier quoted context omitted.

Can I ask what kkk means? I thought it meant that you were laughing like haha (a leas in Brazil) I didn't know it had bad connotations

https://en.wikipedia.org/wiki/Ku_Klux_Klan

Perhaps in US but in Brazil it is common use to write kkk to laugh
Post reply on HN