From f7764bb4555e1709fc5842b8f73d6c7cf9a525f2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Tue, 10 Mar 2015 15:58:00 -0400 Subject: [PATCH] misc/vim: nitdoc function search for a precise word MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- misc/vim/plugin/nit.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/vim/plugin/nit.vim b/misc/vim/plugin/nit.vim index 046ab9f..f19224a 100644 --- a/misc/vim/plugin/nit.vim +++ b/misc/vim/plugin/nit.vim @@ -283,7 +283,7 @@ fun Nitdoc() for line in readfile(path) let words = split(line, '#====#', 1) let name = get(words, 0, '') - if name =~ '^' . word + if name =~ '^' . word . '\>' " It fits our word, get long doc let desc = get(words,3,'') let desc = join(split(desc, '#nnnn#', 1), "\n") -- 1.7.9.5