xthrd
xthrd

Reputation: 252

Automatically reload .vimrc in multiple sessions

I usually develop with vim open in multiple tabs/terminals. When I make a change to my vimrc, this means closing and reopening all sessions of vim. Is there a way to automatically reload your vimrc in ALL open sessions? It seems like if this was possible, the answer would be easy to find, but I thought I would ask anyway.

I've already looked here. As the answer suggests, it doesn't work for regular vim (only gvim)

Upvotes: 4

Views: 887

Answers (2)

Conner
Conner

Reputation: 31110

See this answer about clientserver on a Mac (assuming this might be your problem).

Upvotes: 1

pb2q
pb2q

Reputation: 59637

You can reload your vimrc without exiting vim:

:source ~/.vimrc

But you'll need to do this across all open instances of vim.

Upvotes: 1

Related Questions