aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload/mail.vim
blob: 4c21ae38244684d87b0bd3514f3b8b5fde60d120 (plain)
1
2
3
4
5
6
7
8
9
10
11
" Quote lines in mail messages
function! mail#Quote() abort
  set operatorfunc=mail#QuoteOpfunc
  return 'g@'
endfunction
function! mail#QuoteOpfunc(type) abort
  for l:li in range(line('''['), line(''']'))
    let l:line = getline(l:li)
    call setline(l:li, '>'.l:line)
  endfor
endfunction