From 20bd175a9aea6bae11fa9ce42744f64b87922737 Mon Sep 17 00:00:00 2001 From: darkelfe Date: Sun, 28 Dec 2014 14:50:18 +0100 Subject: [PATCH] [vim] Change fold function to use correct tabstop size --- vim/vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/vimrc b/vim/vimrc index a486ca9..398f6d7 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -33,7 +33,7 @@ function! MyFoldFunction() "Cleanup unwanted things in first line let sub_space = substitute(line, '/\*\|\*/\|{', '', 'g') - let sub = substitute(sub_space, '\(^\s*\)\@<=\s', '-', 'g') + let sub = substitute(sub_space, '\(^\s*\)\@<=\s\{'.&l:tabstop.'\}', '-', 'g') "Calculate lines in folded text let lines = v:foldend - v:foldstart + 1