From: Bart Trojanowski Date: Fri, 27 Nov 2009 06:02:50 +0000 (-0500) Subject: vim: store previous buffer number when starting to compose X-Git-Tag: 0.1~313^2~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=05d76deb2eb3aaf09444e8cfb59a438c3d774bea;p=notmuch.git vim: store previous buffer number when starting to compose --- diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index 63095ed5..63a711fd 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -936,6 +936,7 @@ function! s:NM_cmd_compose(words, body_lines) call NM_newFileBuffer(g:notmuch_compose_temp_file_dir, '%s.mail', \ 'compose', lines) setlocal bufhidden=hide + let b:nm_prev_bufnr = prev_bufnr call NM_set_map('n', g:notmuch_compose_nmaps) call NM_set_map('i', g:notmuch_compose_imaps)