agelessdummy / vimwiki

Automatically exported from code.google.com/p/vimwiki
0 stars 1 forks source link

Folding Bug #344

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. navigate to the tests/ folder in the developer distribution
2. create the file `fdm.vimrc` with the contents below
3. run "vim -n -u fdm.vimrc wiki/index.wiki"

``` vim: fdm.vimrc
  " There options are required by vimwiki.
  set nocompatible
  filetype plugin on
  syntax on

  set encoding=utf-8

  " Load only system and vimwiki's scripts.
  set runtimepath=../src,$VIMRUNTIME

  " setup to demonstrate folding bug
  set fdm=expr
  let g:vimwiki_folding = 1
  let g:vimwiki_list = [{'path': getcwd().'/wiki'}]

What is the expected output? What do you see instead? Folding is expected, but not operational.

Please use labels and text to provide additional information. It seems as though the condition on line 198 is too restrictive ... shouldn't we set up folding regardless!? (caveat: I am not experienced with folding settings in vim)


Original issue reported on code.google.com by `stu.andrews` on 12 Jun 2012 at 4:23
GoogleCodeExporter commented 8 years ago
line 198 of plugin/vimwiki.vim

Original comment by stu.andrews on 12 Jun 2012 at 4:24

GoogleCodeExporter commented 8 years ago
It was done that way to let users define their own folding function.

But it looks like for a regular user it would be close to impossible to define 
it properly. So I think we should make it less restrictive.

Original comment by habamax on 15 Jun 2012 at 7:27

GoogleCodeExporter commented 8 years ago
Fixed by r73ffdf0b050c. Use let g:vimwiki_folding = 2 to enable your own 
settings for fold-expression and/or fold-text.

Original comment by stu.andrews on 17 Jun 2012 at 6:30

GoogleCodeExporter commented 8 years ago
sup!

I am on vacation and my laptop suddenly died. So I would be out of dev for 
awhile.

Original comment by habamax on 18 Jun 2012 at 6:53

GoogleCodeExporter commented 8 years ago
:-) those are the best vacations!

Original comment by stu.andrews on 18 Jun 2012 at 3:17

GoogleCodeExporter commented 8 years ago

Original comment by habamax on 21 Jun 2012 at 4:10