Hacker Newsnew | past | comments | ask | show | jobs | submit | more dezzadk's commentslogin

Vim is way more customizable and portable than any gui editor imo. An extreme amount of filetype support is builtin to the vim runtime, try to peek how many definitions there are in the src/runtime path on github.

I think its well worth it. Even for the macros, normal commands there is no more efficient way to edit text.

If all touch keyboards had vim-mode we'd all be more productive on smartphones. People who use vim over ssh on mobile devices knows this. I've remapped the record macro (q) to (qq) on mobile devices and put my normal-mode leader key on q, it works really well.


This tip beats all tips https://asciinema.org/a/274255

You can move the line below your bindkey defs so you still have keys.


Excerpt from script comments:

This doesn't actually make your zsh start instantly, hence the reference to the "one weird trick" advertisement. It does, however, make it feel like zsh is loading faster. Or, put it another way, your original zsh wasn't so slow to load, but you thought it was slow. Now you see that it was pretty fast all along.

Here's how it work. To make your zsh "start instantly" all you need to do is print your prompt immediately when zsh starts, before doing anything else. At the top of ~/.zshrc is a good place for this. If your prompt takes a long time to initialize, print something that looks close enough. Then, while the rest of ~/.zshrc is evaluated and precmd hooks are run, all keyboard input simply gets buffered. Once initialization is complete, clear the screen and allow the real prompt be printed where the "loading" prompt was before. With the real prompt in place, all buffered keyboard input is processed by zle.

It's a bit gimmicky but it does reduce the perceived ZSH startup latency by a lot. To make it more interesting, add `sleep 1` at the bottom of zsh and try opening a new tab in your terminal. It's still instant!


True, however at some point you have plugins that take near 1s to load like syntax highlighting and its just not possible to reduce that to 100ms


I just start typing command before prompt shows...


All laptops suck nowadays. Lenovo and Dell learned from Apple that laptops don't need to last to be expensive.. since Ultrabooks happened laptops have serious QC issues.


1. Write cheatsheet while you learn.

2. Hang out in #vim :)


IDGAF about their "sent DOA and fix later" on-site support. It will NOT fix terrible QC of their motherboards.


Nope. Its all buggy and shitty. Dell XPS had coilwhine for several ages despite numerous complaints and other laptops with same chipsets didn't. The cause? Cheaping out on inductors. Lenovo has firmware issues I just returned my laptop which gone black screen due to some suspend/sleep state at random. This is a huge issue btw affecting more than 20-30+ models. Actually Lenovo support guy I asked for his recommendation said he got the M1 Macbook Air lol, the other one I spoke to said the only one he didn't have complaints about was their flagship P1 model. The previous Dell I tried ordering had GPU DOA. Honestly I don't give a shit about the on-site support the other guy mentioned, its just a bandaid on the problem that all laptops suck, but more often than not no matter how many times you replace a motherboard you can't fix these glaring issues! Its the QUALITY of the motherboard that sucks!

Macbooks aren't perfect either despite having better wifi, audio (and lower noise-floor). I would not choose a Macbook unless an employer gave it to me for free, but then I would without a doubt choose one. Will the logic board fail after 1 year warranty or a year after? Or have other quirks? Most likely!

Android is the same btw, ask me why I run iPhone despite being the largest android fanboi previously.. everything was terribly broken and half-baked.. The only android device I own now is my SONY X900H TV and since latest update it has started to reboot itself at random.

I'm fed up with this..


"everything was terribly broken and half-baked"

What are you talking about? My S22 Ultra works great.


Give it to me for a week and I will tell you everything wrong with it including all the bugs you haven't found yet.


Yeah he seems very depressive, going through some personal stuff.

I think his (pinboard) Twitter-bio said something dark like "The light inside is broken, but I still work" at some point.


That final one isn't especially upflifting, but it's from a meme.

https://i.kym-cdn.com/photos/images/newsfeed/001/440/187/84d...


Would be an odd reference without context, but I'm not sure. I just hope he is alright.


You're right, nothing is made to last.

But Macbooks aren't any better.. You'll be paying for a new logic board exactly 1-2 years later out of warranty.

Lenovo has firmware issues which makes an extreme amount of laptops go black screen on resume suspend.

Dell XPS has had coilwhine for ages.

All laptops suck nowadays.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: