lib/vmail.vim in vmail-2.9.2 vs lib/vmail.vim in vmail-2.9.3
- old
+ new
@@ -128,10 +128,18 @@
call s:focus_list_window()
end
redraw
endfunction
+function! s:show_large_message()
+ call <SID>show_message(0)
+ wincmd o
+ 3split
+ execute 'b'. s:listbufnr
+ wincmd p
+endfunction
+
" from message window
function! s:show_next_message()
let fullscreen = (bufwinnr(s:listbufnr) == -1) " we're in full screen message mode
if fullscreen
3split
@@ -875,10 +883,11 @@
endif
nnoremap <buffer> <unique> <script> <Plug>VmailMessageWindow_OpenHTML :call <SID>open_html_part()<CR>
if !hasmapto('<Plug>VmailMessageWindow_CloseWindow')
nmap <buffer> <leader>q <Plug>VmailMessageWindow_CloseWindow
+ nmap <buffer> o <Plug>VmailMessageWindow_CloseWindow
endif
nnoremap <buffer> <unique> <script> <Plug>VmailMessageWindow_CloseWindow :call <SID>close_message_window()<CR>
if !hasmapto('<Plug>VmailMessageWindow_DeleteMessage')
nmap <buffer> <leader># <Plug>VmailMessageWindow_DeleteMessage
@@ -955,12 +964,18 @@
endfunc
func! s:message_list_window_mappings()
if !hasmapto('<Plug>VmailOpenMessage')
nmap <buffer> <CR> <Plug>VmailOpenMessage
+ nmap <buffer> o <Plug>VmailOpenMessage
nmap <buffer> <LeftMouse> <Plug>VmailOpenMessage
endif
nnoremap <buffer> <unique> <script> <Plug>VmailOpenMessage :call <SID>show_message(0)<CR>
+
+ if !hasmapto('<Plug>VmailOpenLargeMessage')
+ nmap <buffer> O <Plug>VmailOpenLargeMessage
+ endif
+ nnoremap <buffer> <unique> <script> <Plug>VmailOpenLargeMessage :call <SID>show_large_message()<CR>
if !hasmapto('<Plug>VmailPreviewMessage')
nmap <buffer> l <Plug>VmailPreviewMessage
endif
nnoremap <buffer> <unique> <script> <Plug>VmailPreviewMessage :call <SID>show_message(1)<CR>