Saturday, June 18, 2011

Re: Exasperated with folding

On Jun 17, 2011, at 3:57 PM, Vlad Irnov wrote:

> Manual folding is the wrong tool, you are going to create more
> problems than you solve.

Perhaps I've been experiencing some of them. My experience with it is that folds end up at random locations unrelated to the ones used in establishing them.

> What you need is a file format that supports
> an outline structure and thus can be folded by Vim automatically.
>
> My favorite markup is fold markers with levels, which was already
> suggested by others. This is one of Vim's built-in folding methods
> :set fdm=marker
> :help fold-marker

As others have suggested it, I will at least look into it.

> The drawback of this format is that it is difficult to change outline
> structure--level numbers need to be changed. I wrote VOoM plugin for
> that. It can also handle other outline formats:
> http://www.vim.org/scripts/script.php?script_id=2657

I'm intrigued by Voom.

> There are various Vim plugins on vim.org for outlining and note-
> taking. Each relies on its own markup format. They usually have
> folding set up out of the box. Some of the well known:
> VimOutliner: http://www.vim.org/scripts/script.php?script_id=3515
> The Vim Outliner: http://vim.sourceforge.net/scripts/script.php?script_id=517
> Viki: http://www.vim.org/scripts/script.php?script_id=861
> Vimwiki: http://www.vim.org/scripts/script.php?script_id=2226

I've had experience with VO. There is so much about it that's counter to intuitions developed over many years with another outliner -- MaxThink; I wish someone would take on porting it to unix/linux/os x -- that I just can't use it. Hadn't encountered viki or vimwiki before.

> You can also try one the popular light-weight markup languages:
> Markdown, txt2tags, reST. In theory, they all can have folding set up
> on headlines. I posted foldexpr for Markdown here:
> http://groups.google.com/group/vim_use/browse_thread/thread/9beeb7abaad23cb3/

I've committed to something called MultiMarkdown. It's an extension of Markdown. For me, the appeal is support for LaTeX, footnotes, citing, and bibliography. Also, it's incorporated in another "editor" that I use. [Scrivener. More than an editor. A very flexible editor with project management capabilities and support for footnoting.]

I've checked out your foldexpr for Markdown. I haven't a clue how it works. [I'm a nonprogrammer Vim novice.] But if I could get or create one for the atx style syntax for headers it might be the solution forme.

> The Emacs Orgmode is probably the most powerful as a journaling tool,
> but Vim plugins for it are work in progress.

I've been checking out VimOrganizer. http://www.vim.org/scripts/script.php?script_id=3342 The most recent version was released last December. And as I understand it it was still "in development" then. To use all its features you need to compile it with a patch, which is not something I would begin to attempt. I was impressed by W\what I saw on the videos about it.

------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA USA
eeweir@bellsouth.net


--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: