himalaya/vim/ftplugin/himalaya-msg-read.vim
2021-04-30 13:51:40 +02:00

17 lines
421 B
VimL

setlocal bufhidden=wipe
setlocal buftype=nofile
setlocal cursorline
setlocal filetype=mail
setlocal foldexpr=himalaya#shared#thread#fold(v:lnum)
setlocal foldmethod=expr
setlocal nomodifiable
syntax on
call himalaya#shared#bindings#define([
\["n", "gw", "msg#write" ],
\["n", "gr", "msg#reply" ],
\["n", "gR", "msg#reply_all" ],
\["n", "gf", "msg#forward" ],
\["n", "ga", "msg#attachments"],
\])