Fix #415, expand iabbrev entries on <CR>.

This commit is contained in:
Rane Brown 2019-05-23 21:22:29 -06:00
parent 70a4852f3c
commit 6755068152
2 changed files with 8 additions and 1 deletions

View File

@ -3520,6 +3520,7 @@ Removed:~
point. point.
Fixed:~ Fixed:~
* Issue #415: Expand iabbrev entries on <CR>.
* Issue #619: allow escaped characters in markdown links. * Issue #619: allow escaped characters in markdown links.
* Issue #240: Fix regex pattern for markdown '[]()' links * Issue #240: Fix regex pattern for markdown '[]()' links
* Issue #685: Error message for invalid user options fixed. * Issue #685: Error message for invalid user options fixed.

View File

@ -438,8 +438,14 @@ nnoremap <silent><buffer> <Plug>VimwikiListo
\ :<C-U>call vimwiki#lst#kbd_o()<CR> \ :<C-U>call vimwiki#lst#kbd_o()<CR>
nnoremap <silent><buffer> <Plug>VimwikiListO nnoremap <silent><buffer> <Plug>VimwikiListO
\ :<C-U>call vimwiki#lst#kbd_O()<CR> \ :<C-U>call vimwiki#lst#kbd_O()<CR>
if has('patch-7.3.489')
" expand iabbrev on enter
inoremap <silent><buffer> <Plug>VimwikiReturn15
\ <C-]><Esc>:VimwikiReturn 1 5<CR>
else
inoremap <silent><buffer> <Plug>VimwikiReturn15 inoremap <silent><buffer> <Plug>VimwikiReturn15
\ <Esc>:VimwikiReturn 1 5<CR> \ <Esc>:VimwikiReturn 1 5<CR>
endif
inoremap <silent><buffer> <Plug>VimwikiReturn22 inoremap <silent><buffer> <Plug>VimwikiReturn22
\ <Esc>:VimwikiReturn 2 2<CR> \ <Esc>:VimwikiReturn 2 2<CR>