News for hackers. Stuff that matters.
Re:Why Should You Learn Vim in 2020 by apotatopot on Wednesday August 05, 2020 @04:23PM (#24065152)
I use vim because its got :sp/:vsp, can edit remote files over scp, :E, :earlier, and now :term, plus so many options in vimrc. I don't think I really even need tmux w/ it anymore.
Re:Why Should You Learn Vim in 2020 by commandlinefan on Wednesday August 05, 2020 @04:44PM (#24065385)
Wow, I've been using vi for 30 years and I had never seen :sp/:vsp, :E, :earlier or :term (although you can do :sp with ^W s). I always feel like there's still a lot of "hidden" functionality in vim that I need to uncover one of these days.
Re:Why Should You Learn Vim in 2020 by addicted44 on Wednesday August 05, 2020 @04:54PM (#24065483)
:term is new with Vim 8 I believe.

The Vim author was against adding :term but their hand was forced by the success of neovim from what I understand.

Re:Why Should You Learn Vim in 2020 by aidenn0 on Wednesday August 05, 2020 @04:49PM (#24065443)
Just because it's not a vim discussion thread without someone telling you how to save a keystroke, ":vs" will work for vertical splitting.
Re:Why Should You Learn Vim in 2020 by u801e on Wednesday August 05, 2020 @05:31PM (#24065849)
I rarely ever use :sp or :vsp for creating window splits. I typically use the ctrl-w shortcuts to handle creating and moving window splits.
Re:Why Should You Learn Vim in 2020 by thekelvinliu on Wednesday August 05, 2020 @07:08PM (#24066605)
:term really changed the game for me. being able to run commands and then work with the output in other modes is so convenient. pair with neovim-remote[0], and it's pretty magical.

i stopped using tmux because now all i need to do is open a terminal buffer in a new split to multiplex. i rarely used it for sessions, but use abduco[1] for that now when i find the need.

[0]: https://github.com/mhinz/neovim-remote

[1]: https://github.com/martanne/abduco

Re:Why Should You Learn Vim in 2020 by u801e on Wednesday August 05, 2020 @09:33PM (#24067366)
I actually run vim with a single term window within a screen session. All my window splits and tabs are handled by vim. I actually run nested vim instances within those term windows amongst other things.

In other words, screen handles persistance and the ability to reattach to an existing session. The outer vim serves as a terminal manager. The nested vim instances are used to edit code, etc.

Re:Why Should You Learn Vim in 2020 by jedimastert on Wednesday August 05, 2020 @04:39PM (#24065321)
I just use tmux so I don't lose state over ssh sessions.
Re:Why Should You Learn Vim in 2020 by 01100011 on Wednesday August 05, 2020 @05:15PM (#24065675)
Your comment would be a lot more useful if you explained what those commands do.
Re:Why Should You Learn Vim in 2020 by JadeNB on Wednesday August 05, 2020 @06:35PM (#24066356)
> Your comment would be a lot more useful if you explained what those commands do.

I think it's actually more likely to be useful for you (or anyone) to get intrigued, fire up vim, and use, say, `:help :term`. At least, that's what I'm off to do!