Live data from Hacker News

Vim 8.0 is coming

github.com

141–150 of 420 posts

Re: Vim 8.0 is coming

#142

Earlier quoted context omitted.

Because the experience is so much better. The power of command line is intoxicating, and going to GUI tools files like programming with hands tied behind your back and being blindfolded.

I used to think like this, but I don't any more. Both command line development tools and IDEs require work to get the most out of them. I used to think command line tools were better because I was more in control, then I realised if I just spent the time learning what IDEs were doing on my behalf I would still have more or less the same amount of control, especially if the IDE is customisable (which the best ones are…

The thing is, I'm a programmer. I want to extend my tools with code, not configuration. The power of the command line is not so much that it's a command line -- the power is that it is a programmable environment. I'm not limited to configuring what the tools are doing on my behalf. I'm writing my own tools.

I think this is the biggest draw for Emacs. It's a fully featured lisp development environment. If you want to change it, you just write lisp. If your IDE is free software, you can do the same thing, but they aren't always that easy to extend. Emacs, shell script, and the various tools are a set of APIs that you can code against. Most IDEs are geared towards giving you a UI interface to the functionality, not a programming API.

And that's fair, but not really what I'm after most of the time.

Re: Vim 8.0 is coming

#143
post #101

Earlier quoted context omitted.

I disagree. VS, Clion, Eclipse etc. have very different key bindings and differ significantly in the way projects are set up and regarding underlying build mechanisms. These are all things you need to learn to be proficient with a tool. Once you are beyond a superficial use of a tool, a slightly steeper initial learning curve pales in contrast of what you need to reach a certain level.

Well, then you have a GUI - menus/toolbars and after a couple of times use - you just remember the key binding usually specified along the label.

I'm not talking about superficial usage like that. I'm talking about productivity boosts like multiline edits, line swapping, cursor jumping over blocks, and more advanced tricks. Also about where to do all those little tweaks to the configuration you need to google for or ask a coworker about to get a hold of. Those are not discoverable with any GUI.

Re: Vim 8.0 is coming

#144
post #19

Earlier quoted context omitted.

My path from intermediate to advanced (and I think there are big differences in vim between these two) was by watching Derek Wyatt ( https://vimeo.com/user1690209/videos ) do his magic, and reading articles here as well as on reddit. From time to time there are cool blog posts with new things to try. It's also worth to read the source of some of the more famous plugins together with looking up stuff on :help. I defin…

I also like http://vimcasts.org/

As well as producing vimcasts.org Drew Neil has also written [Practical Vim](http://pragprog.com/book/dnvim/practical-vim) which is a great companion to Vim/NeoVim.

I particualarly like the way it teaches you efficient text editing without needing plugins.

Re: Vim 8.0 is coming

#145
post #49

I have a mixed feeling as a NeoVim user and long-time Vim user. On the one hand, great to see such a huge release for Vim that brings so many features people have been begging for. Especially Async IO and JSON. On the other hand, I hope Vim just become more stable and performant while not introducing new features. At the same time, I hope more development could go into NeoVim, and more people could start using it and…

I'm not a NeoVim user, but I've been on the edge of becoming one for a while.

What I'm still holding out for is an _embeddable_ NeoVim. The thing I really don't like about IDEs is that I love my Vim configuration but I never get to actually use the damn thing since I do most of my work in an IDE. Now imagine if the IDE could actually just embed NeoVim, and I could use my Vimrc as-is with all the plugins (now managed natively). I know they already have Electron-based UIs for NeoVim, and Electron-based IDEs, so hopefully it's just a matter of time.

That said, does this actually put NeoVim _behind_ in terms of feature parity?

Re: Vim 8.0 is coming

#146
post #22
post #13

Earlier quoted context omitted.

I believe that it is good that there is no winner. If you look at vim and emacs specifically their thinking is very different. I would say that with the best plugins, config and skills in the world you would not be able to make one as good as the other in the others corresponding strength. Each is a winner in their own regards.

I think we have 2 winners: Emacs on the "platform" (superior scripting language (elisp), better external process management, better instrumentation). Vim on the modal-editing interface: you can find it in nearly all editors (and even browsers) nowadays. A combination of the two would be awesome, correction "is" awesome: http://spacemacs.org

And then of course people like the spacemacs leader-key binding and port it back to vim :-)

https://github.com/jimmay5469/vim-spacemacs https://github.com/sunaku/vim-shortcut https://github.com/sthysel/vim-spacemacs

Re: Vim 8.0 is coming

#147

Earlier quoted context omitted.

To be fair, vim is not strictly vi although they were related. Amazing, I was 1 year old when both were started. How many other software package has such longevity? Unix and its various guises?

AWK is from 1977 and I use it almost every day.

I actually love writing programs in AWK. I use Python for that kind of work now, and AWK is relegated to one-liners, but there's something very satisfying about the way programs fit together. It's like playing with Lego.

Re: Vim 8.0 is coming

#148
post #25

Earlier quoted context omitted.

If I want to put parens around a word I do, ciw() P (change word pulls it into the default register, insert the parens and then paste from the register back between the parens). You can use the same pattern for any selection you have visually highlighted, such is the wonderful power of vim.

Nice use of the buffer. Is there a nice hack to remove the parentheses around a word as well?

If you have the cursor just before the area you could do: 'dt)' meaning delete to next ), or 'ct)' to delete until next ) and the drop into insert mode. Learning word objects in Vim for me is one of the killer features, and one thing I miss in Emacs.

Re: Vim 8.0 is coming

#149
I'm quite a noob at 'nix, so I tend to use nano whenever I need to edit something. Not sure if this is the right place, but could somebody explain the added benefit of spending the time to learn to use vim/emacs? I've tried vim, but it seems very complicated.
Post reply on HN