Bläddra i källkod

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 år sedan
förälder
incheckning
24e76ceabb
1 ändrade filer med 2 tillägg och 6 borttagningar
  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:
 "   These are settings to make folding easier to use and look at:
 "    - Indented Folds to match their first line.
 "    - Indented Folds to match their first line.
 "    - Statbox to right displays line count and fold level.
 "    - 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.
 "    - SpaceBar toggles folds, if any.
 "        (much more convenient than the 'z' commands)
 "        (much more convenient than the 'z' commands)
 "    - SPF13-VIM provides quick foldlevel setting map: <Leader>f[0-9]
 "    - SPF13-VIM provides quick foldlevel setting map: <Leader>f[0-9]
@@ -75,7 +71,7 @@ if has('folding')
     if (&number || &relativenumber)
     if (&number || &relativenumber)
       let displayWidth -= &numberwidth
       let displayWidth -= &numberwidth
     endif
     endif
-    let foldChar = ''
+    let foldChar = '-'
     " }}}
     " }}}
 
 
     " Set fold fillchar {{{
     " Set fold fillchar {{{
@@ -107,7 +103,7 @@ if has('folding')
 
 
       " Prepare fold indent and indicator {{{
       " Prepare fold indent and indicator {{{
       "  - If indent allows, build the indicator into it.
       "  - If indent allows, build the indicator into it.
-      let foldIndicator = ' '
+      let foldIndicator = '+ '
       let indLen = strdisplaywidth(foldIndicator)
       let indLen = strdisplaywidth(foldIndicator)
       if indent(v:foldstart) >= indLen
       if indent(v:foldstart) >= indLen
         let indent = repeat(' ', indent(v:foldstart) - indLen) . foldIndicator
         let indent = repeat(' ', indent(v:foldstart) - indLen) . foldIndicator