Просмотр исходного кода

Remove non-ASCII folding chars in vim

As nice as fancy characters are, once you start using configs on more machines
and from terminal emulators, compatibility becomes far more important.
Weiyi Lou 10 лет назад
Родитель
Сommit
24e76ceabb
1 измененных файлов с 2 добавлено и 6 удалено
  1. 2 6
      vim/settings/folding.vim

+ 2 - 6
vim/settings/folding.vim

@@ -6,10 +6,6 @@
 "   These are settings to make folding easier to use and look at:
 "    - Indented Folds to match their first line.
 "    - Statbox to right displays line count and fold level.
-"    - Coloured distinctly red!
-"        (sounds harsh, but actually works well with solarized-dark!)
-"    - Fillchar is forced to '.' rather than '-'.
-"        (easier on eyes)
 "    - SpaceBar toggles folds, if any.
 "        (much more convenient than the 'z' commands)
 "    - SPF13-VIM provides quick foldlevel setting map: <Leader>f[0-9]
@@ -75,7 +71,7 @@ if has('folding')
     if (&number || &relativenumber)
       let displayWidth -= &numberwidth
     endif
-    let foldChar = ''
+    let foldChar = '-'
     " }}}
 
     " Set fold fillchar {{{
@@ -107,7 +103,7 @@ if has('folding')
 
       " Prepare fold indent and indicator {{{
       "  - If indent allows, build the indicator into it.
-      let foldIndicator = ' '
+      let foldIndicator = '+ '
       let indLen = strdisplaywidth(foldIndicator)
       if indent(v:foldstart) >= indLen
         let indent = repeat(' ', indent(v:foldstart) - indLen) . foldIndicator