commit 6607a3f641dae9c95d4e0f40d7a228d2c0c9de89
parent 4ab0bdf3da09e86fcd0400aaefeff0d7ac2639a9
Author: EinfachToll <istjanichtzufassen@googlemail.com>
Date: Tue, 31 Mar 2015 14:31:58 +0200
Force wiki files to have filetype=vimwiki
Fix #122
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/autoload/vimwiki/base.vim b/autoload/vimwiki/base.vim
@@ -965,6 +965,9 @@ function! vimwiki#base#edit_file(command, filename, anchor, ...) "{{{
" getpos() directly after this command. Strange.
if !(a:command ==# ':e ' && vimwiki#path#is_equal(a:filename, expand('%:p')))
execute a:command.' '.fname
+ if &filetype != 'vimwiki'
+ set filetype=vimwiki
+ endif
endif
if a:anchor != ''
call s:jump_to_anchor(a:anchor)