top | item 24065152

(no title)

apotatopot | 5 years ago

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.

discuss

order

commandlinefan|5 years ago

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.

addicted44|5 years ago

: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.

aidenn0|5 years ago

Just because it's not a vim discussion thread without someone telling you how to save a keystroke, ":vs" will work for vertical splitting.

u801e|5 years ago

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.

thekelvinliu|5 years ago

: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

u801e|5 years ago

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.

jedimastert|5 years ago

I just use tmux so I don't lose state over ssh sessions.

01100011|5 years ago

Your comment would be a lot more useful if you explained what those commands do.

JadeNB|5 years ago

> 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!