Auto-save on buffer switch?

13 views
Skip to first unread message

Adarsh Pandit

unread,
Feb 24, 2013, 12:48:00 PM2/24/13
to vimsf
Anyone know how I can auto-save a buffer when I switch to another split?

ap


--
@adarshp
developer for thoughtbot, inc
313.454.1515 (m)

Scheduling with me? See bit.ly/adarshcalendar

Matthew Todd

unread,
Feb 24, 2013, 5:30:30 PM2/24/13
to vi...@googlegroups.com
On Feb 24, 2013, at 9:48 AM, Adarsh Pandit <ada...@thoughtbot.com> wrote:

> Anyone know how I can auto-save a buffer when I switch to another split?

My first thought was to set autowrite (or autowriteall), but the list of honored events doesn't seems comprehensive enough.

So, maybe an autocmd for BufLeave?
Reply all
Reply to author
Forward
0 new messages