2

I'm using NeoVIM, and I set up it to show folds automatically. The trouble is that when there is more than one level of folds, it's going to show numbers at the left. enter image description here

Is there any way to remove them, just look like any other modern editors?

I searched on google, StackOverflow, and checked the vimhelp page. I haven't seen a way for this.

I'm sure that's the default behavior, I can reproduce it on the default vim of codesandbox and without any plugin. Please check this link https://codesandbox.io/s/wizardly-tereshkova-vwh5im?file=/README.md. Here is the screenshot.

enter image description here

Stone Sun
  • 21
  • 2
  • @j1-lee, thanks for your reply. However, I'm sure it's the default behavior. I've updated the description above. Please check. – Stone Sun Nov 11 '22 at 07:13
  • "just look like any other modern editors?" Well, neither Vim nor Vim are "modern editors". – romainl Nov 11 '22 at 09:31
  • Are you using nvim-ufo to show the nice foldings? Anyway, this behavior is hard-coded into vim/neovim, current there is not option to change, see also [this issue](https://github.com/kevinhwang91/nvim-ufo/issues/4). – jdhao Nov 14 '22 at 02:52
  • @jdhao, yes, I'm using nvim-ufo. Thanks for your information, I'll check that issue. – Stone Sun Nov 14 '22 at 06:12

1 Answers1

1

As explained in :help fold-foldcolumn, when the value of :help 'foldcolumn is large enough, the fold level is indicated by vertical bars but, when there is not enough room, numbers are used instead. That behavior is not governed by any option so there is nothing you can do about it except rolling up your sleeves and modifying the source code.

That said, the ˇs in your screenshot are clearly not standard `:help 'fillchars', as hinted in the comments, so you should probably take a look at what is redefining those before taking any action.

romainl
  • 186,200
  • 21
  • 280
  • 313