From e0d72759a6b6531c55527171396e6bf6961ec98a Mon Sep 17 00:00:00 2001 From: EinfachToll Date: Thu, 10 Dec 2015 16:07:36 +0100 Subject: [PATCH] Remember kids: always use :normal! with the bang in plugins Fix #175 --- doc/vimwiki.txt | 4 +++- plugin/vimwiki.vim | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/vimwiki.txt b/doc/vimwiki.txt index 03c2571..6c01e3e 100644 --- a/doc/vimwiki.txt +++ b/doc/vimwiki.txt @@ -2705,12 +2705,14 @@ Contributors and their Github usernames in roughly chronological order: ============================================================================== 15. Changelog *vimwiki-changelog* -???~ +2.2.1~ Removed:~ * Removed the option g:vimwiki_debug, which probably nobody used. If you want it back, file an issue at Github. +Fixed:~ + * don't do random things when the user has remapped the z key 2.2~ diff --git a/plugin/vimwiki.vim b/plugin/vimwiki.vim index 09ad886..a910e54 100644 --- a/plugin/vimwiki.vim +++ b/plugin/vimwiki.vim @@ -169,7 +169,7 @@ function! s:setup_buffer_enter() "{{{ setlocal foldtext=VimwikiFoldText() else setlocal fdm=manual - exe "normal zE" + normal! zE endif " And conceal level too.