Force wiki files to have filetype=vimwiki

Fix #122
This commit is contained in:
EinfachToll 2015-03-31 14:31:58 +02:00
parent 4ab0bdf3da
commit 6607a3f641

View File

@ -965,6 +965,9 @@ function! vimwiki#base#edit_file(command, filename, anchor, ...) "{{{
" getpos() directly after this command. Strange. " getpos() directly after this command. Strange.
if !(a:command ==# ':e ' && vimwiki#path#is_equal(a:filename, expand('%:p'))) if !(a:command ==# ':e ' && vimwiki#path#is_equal(a:filename, expand('%:p')))
execute a:command.' '.fname execute a:command.' '.fname
if &filetype != 'vimwiki'
set filetype=vimwiki
endif
endif endif
if a:anchor != '' if a:anchor != ''
call s:jump_to_anchor(a:anchor) call s:jump_to_anchor(a:anchor)