From 4e93c33eb4b898de110583825016aa2dca7a3165 Mon Sep 17 00:00:00 2001 From: Maxim Kim Date: Mon, 26 May 2008 00:00:00 +0000 Subject: [PATCH] Version 0.3.4 * FIXED: Backup files (.wiki~) caused a bunch of errors while opening wiki files. --- plugin/vimwiki.vim | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugin/vimwiki.vim b/plugin/vimwiki.vim index 9da68eb..1a31fd0 100644 --- a/plugin/vimwiki.vim +++ b/plugin/vimwiki.vim @@ -3,8 +3,8 @@ " Author: Maxim Kim (habamax at gmail dot com) " Home: http://code.google.com/p/vimwiki/ " Filenames: *.wiki -" Last Change: (23.05.2008 16:38) -" Version: 0.3.3 +" Last Change: (26.05.2008 10:55) +" Version: 0.3.4 if exists("loaded_vimwiki") || &cp @@ -348,9 +348,14 @@ endfunction "}}} function! WikiHighlightWords() "{{{ let wikies = glob(g:vimwiki_home.'*') + "" remove .wiki extensions let wikies = substitute(wikies, '\'.g:vimwiki_ext, "", "g") let g:vimwiki_wikiwords = split(wikies, '\n') + "" remove paths call map(g:vimwiki_wikiwords, 'substitute(v:val, ''.*[/\\]'', "", "g")') + "" remove backup files (.wiki~) + call filter(g:vimwiki_wikiwords, 'v:val !~ ''.*\~$''') + for word in g:vimwiki_wikiwords if word =~ g:vimwiki_word1 && !s:WikiIsLinkToNonWikiFile(word) execute 'syntax match wikiWord /\<'.word.'\>/'