diff options
| author | Adam Stankiewicz <sheerun@sher.pl> | 2020-01-25 16:56:10 +0100 | 
|---|---|---|
| committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-01-25 16:56:10 +0100 | 
| commit | 35ea4d2b9072594b6c0ccf87bde7978ed9f94755 (patch) | |
| tree | e829bad239fea3150cd0963933f3e33214f069b4 /ftplugin | |
| parent | 967486dd716de860db3ef091a9dcb9cb65023534 (diff) | |
| download | vim-polyglot-35ea4d2b9072594b6c0ccf87bde7978ed9f94755.tar.gz vim-polyglot-35ea4d2b9072594b6c0ccf87bde7978ed9f94755.zip | |
Updatev4.2.1
Diffstat (limited to '')
| -rw-r--r-- | ftplugin/dhall.vim | 6 | ||||
| -rw-r--r-- | ftplugin/mail_vifm.vim | 2 | 
2 files changed, 5 insertions, 3 deletions
| diff --git a/ftplugin/dhall.vim b/ftplugin/dhall.vim index d09f4c31..c5553f49 100644 --- a/ftplugin/dhall.vim +++ b/ftplugin/dhall.vim @@ -34,14 +34,16 @@ endif  function! DhallFormat()      let cursor = getpos('.') -    exec 'silent %!dhall format' +    exec 'normal! gg' +    exec 'silent !dhall format --inplace ' . expand('%') +    exec 'e'      call setpos('.', cursor)  endfunction  if exists('g:dhall_format')      if g:dhall_format == 1          augroup dhall -            au BufWritePre *.dhall call DhallFormat() +            au BufWritePost *.dhall call DhallFormat()          augroup END      endif  endif diff --git a/ftplugin/mail_vifm.vim b/ftplugin/mail_vifm.vim index 33e62683..c9849fbc 100644 --- a/ftplugin/mail_vifm.vim +++ b/ftplugin/mail_vifm.vim @@ -54,7 +54,7 @@ function! s:HandleRunResults(exitcode, listf)  	if filereadable(a:listf) && l:insert_pos != 0  		for line in readfile(a:listf) -			call append(l:insert_pos, 'Attach: '.line) +			call append(l:insert_pos, 'Attach: '.escape(line, " "))  			let l:insert_pos += 1  		endfor  	endif | 
