Make endwise and pear-tree play together

Sun, 10 Feb 2019 01:23:06 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 10 Feb 2019 01:23:06 -0600
changeset 731
b2b9817966df
parent 730
15f44658968e
child 732
df503f949a40

Make endwise and pear-tree play together

.vimrc file | annotate | diff | comparison | revisions
--- a/.vimrc
+++ b/.vimrc
@@ -293,6 +293,12 @@ augroup vimrc
 
   " Neomutt changed their tmpfile pattern, ugh
   autocmd BufNewFile,BufRead neomutt-*-\w\+ setf mail
+
+  " Make these two play nice
+  autocmd BufEnter *
+    \ if exists('g:loaded_pear_tree') && exists('g:loaded_endwise') |
+      \ imap <buffer> <CR> <Plug>(PearTreeExpand)<Plug>DiscretionaryEnd |
+    \ endif
 augroup END
 
 " https://mjj.io/2015/01/27/encrypting-files-with-gpg-and-vim/

mercurial