Skip to content

Commit e0d7275

Browse files
committed
Remember kids: always use :normal! with the bang in plugins
Fix vimwiki#175
1 parent f9045a4 commit e0d7275

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

doc/vimwiki.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2705,12 +2705,14 @@ Contributors and their Github usernames in roughly chronological order:
27052705
==============================================================================
27062706
15. Changelog *vimwiki-changelog*
27072707

2708-
???~
2708+
2.2.1~
27092709

27102710
Removed:~
27112711
* Removed the option g:vimwiki_debug, which probably nobody used. If you
27122712
want it back, file an issue at Github.
27132713

2714+
Fixed:~
2715+
* don't do random things when the user has remapped the z key
27142716

27152717
2.2~
27162718

plugin/vimwiki.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ function! s:setup_buffer_enter() "{{{
169169
setlocal foldtext=VimwikiFoldText()
170170
else
171171
setlocal fdm=manual
172-
exe "normal zE"
172+
normal! zE
173173
endif
174174

175175
" And conceal level too.

0 commit comments

Comments
 (0)