From 05008e7a82b9d83669481e9b56468cd8660b45d6 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 10 Oct 2014 17:34:39 +0900 Subject: [PATCH] Use s:extract_name instead of matchstr --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index 766827f..36f030a 100644 --- a/plug.vim +++ b/plug.vim @@ -1383,7 +1383,7 @@ function! s:find_name(lnum) if empty(line) return '' endif - let name = matchstr(line, '\(^- \)\@<=[^:]\+') + let name = s:extract_name(line, '-', '') if !empty(name) return name endif