lib/vmail.vim in vmail-1.9.0 vs lib/vmail.vim in vmail-1.9.1

- old
+ new

@@ -653,10 +653,19 @@ let s:savedir = input("save attachments to directory: ", s:savedir, "dir") let command = s:save_attachments_command . s:savedir let res = system(command) echo res endfunc + +func! s:attach_file(file) + normal gg + normal } + let attach = "attach: " . a:file + put =attach +endfunc + + " -------------------------------------------------------------------------------- func! s:toggle_maximize_window() if winnr('$') > 1 only @@ -822,9 +831,10 @@ func! s:compose_window_mappings() noremap <silent> <buffer> <leader>q :call <SID>close_and_focus_list_window()<cr> setlocal ai " setlocal textwidth=72 autocmd CursorMoved <buffer> call <SID>toggle_textwidth() + command! -bar -nargs=1 -complete=file VMAttach call s:attach_file(<f-args>) endfunc func! s:global_mappings() " NOTE send_message is a global mapping, so user can load a saved " message from a file and send it