From 675506815236e22b02b7528ff91bd19df730c50d Mon Sep 17 00:00:00 2001 From: Rane Brown Date: Thu, 23 May 2019 21:22:29 -0600 Subject: [PATCH] Fix #415, expand iabbrev entries on . --- doc/vimwiki.txt | 1 + ftplugin/vimwiki.vim | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/vimwiki.txt b/doc/vimwiki.txt index a4f0712..577f9ef 100644 --- a/doc/vimwiki.txt +++ b/doc/vimwiki.txt @@ -3520,6 +3520,7 @@ Removed:~ point. Fixed:~ + * Issue #415: Expand iabbrev entries on . * Issue #619: allow escaped characters in markdown links. * Issue #240: Fix regex pattern for markdown '[]()' links * Issue #685: Error message for invalid user options fixed. diff --git a/ftplugin/vimwiki.vim b/ftplugin/vimwiki.vim index 619e762..2ae77e1 100644 --- a/ftplugin/vimwiki.vim +++ b/ftplugin/vimwiki.vim @@ -438,8 +438,14 @@ nnoremap VimwikiListo \ :call vimwiki#lst#kbd_o() nnoremap VimwikiListO \ :call vimwiki#lst#kbd_O() -inoremap VimwikiReturn15 +if has('patch-7.3.489') + " expand iabbrev on enter + inoremap VimwikiReturn15 + \ :VimwikiReturn 1 5 +else + inoremap VimwikiReturn15 \ :VimwikiReturn 1 5 +endif inoremap VimwikiReturn22 \ :VimwikiReturn 2 2