Live data from Hacker News

VIM Master

github.com

91–100 of 123 posts

Re: VIM Master

#92
post #91

https://www.vimgolf.com/ is what taught me to VIM

I like the idea of vimgolf, but almost every "good solution" is a regexp replacement. Which is a problem since outside of vimgolf, I've very rarely used i. The usecase of vim regexp is quite narrow, basically only used in converting files between formats (a task I'd rather use other tools for)

Re: VIM Master

#93

Ah, yet another brave soul seeks to gamify the ancient art of Vim. Admirable. But Vim is not merely a tool... it's a discipline. A lifestyle. It is not learned in an afternoon, nor in a weekend sprint of neon-highlighted tutorials. No, Vim is best learned like one reads a long, weathered tome: slowly, reverently, one page at a time. It begins humbly: i to whisper your intentions. :wq to seal your work with a sacred r…

Anyone can learn :q to quit vim

But can anyone truly quit vim? No

Re: VIM Master

#94

I generally recommend to exit either via :xa (save all & exit) or :qa! (discard all and exit), bound to ZZ or ZA respectively. If you exit via :q or :wq, it just closes the current buffer, and moves to the next one. E.g. if you have a neotree open along with the editor, you type :wq, it closes the editor buffer and moves you into the file tree, which can be very confusing for beginners.

There are cases where you would not necessarily want to save all buffers. To me it is an eletrical term.

Re: VIM Master

#95
post #82

Earlier quoted context omitted.

> I’m still not even a vim master. I can do some things that people using vim for decades didn't know was possible. I'm still not a vim master. How does one ascend to the levels of TPope? Joking aside, I think that's one of the nice things about vim. There's always more to learn. Not in the way that you're missing something but in the same way this is true for any programming language. It's because these tools are so…

Vim isn't an editor, it's an interactive programming language for text processing. :%norm 0f"ldt"i... There are so many times (even per day) where I'll say to myself: "ahhh, I'll just 'vim' it rather than writing a program..." If I'm not going to have to do it a bunch, sometimes vim itself is faster than writing a script to do whatever random task I need done.

Try `vim -c`. Or better, in your terminal press

Re: VIM Master

#96

I generally recommend to exit either via :xa (save all & exit) or :qa! (discard all and exit), bound to ZZ or ZA respectively. If you exit via :q or :wq, it just closes the current buffer, and moves to the next one. E.g. if you have a neotree open along with the editor, you type :wq, it closes the editor buffer and moves you into the file tree, which can be very confusing for beginners.

just do :wq :wq :wq :wq etc :P

That is what I do. I thought I was the only genius.

Re: VIM Master

#97
someone should make guitar hero with vim's keybindings. maybe you need to write the tabs quick enough to play it live including the ascii art strings -_-. multi line editing, tgted char insertions on different lines and intervals... all you need to be a vimgod.

meanwhile there's also text editors that dont make you doubt yourself and fall on your face each time someone walks by ur workstation and you want to show them some kind of space-invaders-word-editing-trick which always fails because your fingers arent rubber bands afterall.

(sorry totally nano lover :p satire/jokes)

Re: VIM Master

#99

I generally recommend to exit either via :xa (save all & exit) or :qa! (discard all and exit), bound to ZZ or ZA respectively. If you exit via :q or :wq, it just closes the current buffer, and moves to the next one. E.g. if you have a neotree open along with the editor, you type :wq, it closes the editor buffer and moves you into the file tree, which can be very confusing for beginners.

just do :wq :wq :wq :wq etc :P

Or do ZZZZZZZZZZ
Post reply on HN