File: msmtp.vim

package info (click to toggle)
msmtp 1.8.32-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,812 kB
  • sloc: ansic: 14,526; sh: 6,540; makefile: 154; lisp: 53; sed: 39
file content (21 lines) | stat: -rw-r--r-- 689 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
setlocal commentstring=#\ %s
let b:undo_ftplugin = 'setlocal commmentstring<'

if !has('unix')
  finish
endif

if !has('gui_running')
  command! -buffer -nargs=1 MsmtpKeywordPrg
    \ silent exe '!' . 'LESS= MANPAGER="less --pattern=''\b' . <q-args> . '\b'' --hilite-search --squeeze-blank-lines" MANPAGER= man ' . 'msmtp' |
    \ redraw!
elseif has('terminal')
  command! -buffer -nargs=1 MsmtpKeywordPrg
    \ silent exe 'term ' . 'env LESS= MANPAGER="less --pattern=''\\b' . <q-args> . '\\b'' --hilite-search --squeeze-blank-lines" MANPAGER= man ' . 'msmtp'
else
  finish
endif
setlocal iskeyword+=-
setlocal keywordprg=:MsmtpKeywordPrg

let b:undo_ftplugin .= 'iskeyword< keywordprg<'