Sun, 10 Feb 2019 01:23:06 -0600
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/