From 0ceb8558c3972611ab6422d02cdf44de53488044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98ystein=20Walle?= Date: Sun, 10 May 2015 16:46:02 +0200 Subject: [PATCH] Accept a b flag in 'comments' The default ftplugin/python.vim uses the b flag. I am unsure what other flags are needed to be added to the pattern. From my reading of :help 'comments' this should be enough. I guess I'll just have to add them as issues appear. --- plugin/double-tap.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/double-tap.vim b/plugin/double-tap.vim index b3aff20..3594b61 100644 --- a/plugin/double-tap.vim +++ b/plugin/double-tap.vim @@ -35,7 +35,7 @@ endif let g:loaded_doubletap = 1 " }}} -let s:pattern = '\(,\|^\):\zs\([^,]\+\)' " This patterns finds the wanted +let s:pattern = '\([b,]\|^\):\zs\([^,]\+\)' " This patterns finds the wanted " item in 'comments' let s:commStart = {} " dict to hold the comment starters using