mirror of
https://github.com/soywod/himalaya.git
synced 2024-09-29 04:31:11 +00:00
b7d068c729
* make imap list and search return msg instead of fetch * move imap logouts to main fn * improve list command * improve search command * improve flags command * improve template reply * improve tpl forward command * refactor tpl and msg reply/forward * refactor copy, move and write commands * refactor attachment command * fix attachment part of copy and move commands * fix send, save, read and mbox * put back notify and watch commands * fix msg encoding * refactor edit choices, clean dead code * fix attachment for write, reply and forward commands * refactor config mod struct * refactor project folder struct * fix vim plugin (#215)
11 lines
309 B
VimL
11 lines
309 B
VimL
setlocal filetype=mail
|
|
setlocal foldexpr=himalaya#shared#thread#fold(v:lnum)
|
|
setlocal foldmethod=expr
|
|
setlocal startofline
|
|
|
|
augroup himalaya_write
|
|
autocmd! * <buffer>
|
|
autocmd BufWriteCmd <buffer> call himalaya#msg#draft_save()
|
|
autocmd BufLeave <buffer> call himalaya#msg#draft_handle()
|
|
augroup end
|