Live data from Hacker News

Vim after 15 Years

statico.github.io

111–120 of 176 posts

Re: Vim after 15 Years

#111
post #94

Vim, apparently, is the new emacs. /me ducks and runs out of the room

That's what I don't get: for years, vi (and vim) mocked the emacs community (with some justification) for throwing everything and the kitchen sink into our editor. We were building an entire operating environment, while vi was providing a nice, solid, fast text editor. But with vim & neovim, people are building a complex operating environment in a terrible language, and ignoring the man-centuries of effort which have…

There's a lot of engineering in Vim as well. E.g., Vim's completion system is actually real cool once you learn it (it "clicked" for me after watching this video: https://www.youtube.com/watch?v=3TX3kV3TICU ). Vim regex, folding, and spellcheck also have useful features that you won't find anywhere else.

More generally, I agree with you. If it were up to me I would prefer to use Emacs as a baseline. But it's not up to me, just like it wasn't up to Google to decide that Javascript wins. Ubiquity wins. Emacs lost.

> for throwing everything and the kitchen sink into our editor. ... But with vim & neovim, people are building a complex operating environment

That's not really true. The explicit goal of Nvim is to be embedded and focus on "peer to peer" nvim instances. That's the opposite of Emacs' constant reminder that there needs to be a single Emacs daemon controlling everything, and you "should never leave Emacs".

Re: Vim after 15 Years

#112
post #104
post #86

If you're going to use buffers (which you should), make sure to set hidden otherwise you'll get an error message when you try to swap to a different buffers when you have unsaved changes in your current buffer,

Great for helping lose unsaved changes, too.

You still get a warning if you try to close without saving

Re: Vim after 15 Years

#113
post #46

I would not remap , and ; as the article suggests, since those keys are already used in Vim for repeating f/F/t/T.

I wrote a plugin [1] that highlights the first occurrences of characters from your cursor, to make f/F/t/T/;/, easier to use.

[1] https://github.com/unblevable/quick-scope

Re: Vim after 15 Years

#114
post #37

I had another pane autorunning something when it detected src file changes (inotify). So you just :w, and it happens. The method in this blog could do this: just add :w to the mapping. The blog method might seem hacky in using up and enter, but this makes it easy to modify the command you want to run.

Lately I've been going the other way, from a complex vim setup to using the terminal and tools like inotify, tmux, and bash, so far I've found this a much better solution. Keeping my vim configuration and plugins synced between environments (windows, cygwin and linux) was getting to be a compatibility nightmare. I also wanted to try using kakoune ( http://kakoune.org/ ) but found that for day to day stuff I was far t…

Highly recommend kakoune. I've been using it since January or so, and its selection-oriented approach is really nice. I was a heavy user of visual mode in vim, so switching to kak, which has a much richer notion of selections, was a breeze.

Re: Vim after 15 Years

#115
post #48

Regarding buffers in Vim I am fond of using vim-workspaces plugin. With Tab mapped to :WSNext (and C-Tab to :WSPrev) I can see all open buffers and cycle through them. And close unnecessary with :WSClose. https://github.com/bagrat/vim-workspace

FZF with `:Buffers` gives you a fuzzy search on your buffers. Plus there's unimpaired which gives `[b` and `]b`.

I did try to get tabbing through buffers working and yours looks like a good solution, but I find my buffers are rarely next to each other.

Re: Vim after 15 Years

#116
post #90

Earlier quoted context omitted.

BTW, it does have a decent text editor. It's called Evil :)

Spacemacs you mean ;)

Spacemancs is another half-step up the ladder toward OS. It's a bunch of configuration utils and conventions that other people have decided for you--which may or may not be what you want.

Re: Vim after 15 Years

#117

Problems with macOS and iTerm2... that is too bad. I am going to do a 30 day challenge with a Thinkpad from Costco next month. Full linux install with Ubuntu 17.10! I have wanted to try i3wm for as long as I can remember. Unfortunately, it is a PITA to get working on a VM with the Mac as the key chords don't play nicely intersystem. Super excited to give it a go... what is awesome is that I can have an IDE like Pycha…

I recently switched from iTerm2 to Alacritty https://github.com/jwilm/alacritty . It does not have scrollback, splits, tabs and other fancy features. But for me, performance and snappiness is the most important feature (besides, I use Tmux for all those things mentioned). For getting something close to i3 (you wont...?) on macOS I am using chunkwm https://github.com/koekeishiya/chunkwm . I spent some time during the…

An article linked in the OP shows that default Terminal.app is more responsive than Alacritty or iTerm.

[1]: https://danluu.com/term-latency/

Re: Vim after 15 Years

#118
post #94

Vim, apparently, is the new emacs. /me ducks and runs out of the room

That's what I don't get: for years, vi (and vim) mocked the emacs community (with some justification) for throwing everything and the kitchen sink into our editor. We were building an entire operating environment, while vi was providing a nice, solid, fast text editor. But with vim & neovim, people are building a complex operating environment in a terrible language, and ignoring the man-centuries of effort which have…

I've given emacs 3 tries. First just main emacs, then with Evil mode, and last time as Spacemacs. Every time the issue is the same: there is won't be any significant improvement to justify the re-learning curve of everything.

Imo fuzzy finding and git plugins isn't a huge stretch for a editor. I still wouldn't like to read my email from vim.

Re: Vim after 15 Years

#120

Vim is the best lightweight single file editor there is. That’s all it should be. If you’re heavily configuring it, you should be able to answer “why is this better than an ide?” Without saying “vim makes me cool”. Also, if you can answer that, please let me know! To me, an IDE is better for everything but what default vim is good at. And if you tell me that typing is faster, please also tell me why that’s relevant!

Reversely what is so good about your IDE?
Post reply on HN