6

vim has a really cool feature that allows you to concurrently edit the same file in a single vim session.

I use the i3 window manager. I like it because it allows me to tile my windows, tab them, float them, or some combination of those, according to the situation, regardless of whether the window is a browser, or a terminal or whatever. My typical work flow so far has been to open vim in a new terminal for each file I'm editing. Opening vim in a single terminal and just using the internal buffer management commands would be very restricting; it would prevent me from using all of my favorite i3 functionality.

So is there a way to concurrently edit a single file in separate terminals with vim? Maybe something using vim's client server functionality...

2 Answers2

3

There is a plugin called CoVim which adds collaborative editing to vim.

CoVim in Action

FDinoff
  • 1,871
2

Also, you could use a terminal multiplexer like tmux and connect multiple clients to a session with vim.

I use i3 in combination with tmux, which offers me lots of possibilites to achieve things like that.