From 6607a3f641dae9c95d4e0f40d7a228d2c0c9de89 Mon Sep 17 00:00:00 2001 From: EinfachToll Date: Tue, 31 Mar 2015 14:31:58 +0200 Subject: [PATCH] Force wiki files to have filetype=vimwiki Fix #122 --- autoload/vimwiki/base.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/vimwiki/base.vim b/autoload/vimwiki/base.vim index 241d634..8fa50b9 100644 --- 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)