Gmane
From: Jean-Marie Gaillourdet <jmg <at> gaillourdet.net>
Subject: Re: Vim folding/syntax highlighting?
Newsgroups: gmane.emacs.orgmode
Date: 2010-05-18 13:03:39 GMT (2 years, 4 days, 23 hours and 17 minutes ago)
Hi,

sorry to answer so late, but I'm way behind my emails.

There is http://www.vim.org/scripts/script.php?script_id=1266 , which emulates folding like
outline-mode. I'll attach my locally modified version of it. I've added support for deeper outline
structures, drawers, tags, SCHEDULED and DEADLINE. This is just work in progress.

Just put file into ~/.vim/syntax and use :set ft=org or put the following line into ~/.vim/ftdetect/org.vim.

au BufRead,BufNewFile *.org		set filetype=org

Additionally, I have a file ~/vim/ftplugin/org.vim which contains:

map <Tab> za
autocmd! BufRead,BufNewFile *.org set filetype=org

This, allows to use tab to open and close folds as in org-mode.

Best regards,

Jean

On 29.04.2010, at 23:00, Bastien wrote:

> Nathan Neff <nathan.neff <at> gmail.com> writes:
> 
>> I'll probably write a syntax file and a folding method if nobody
>> knows of any existing ones.
> 
> That would be really great!
> 
> -- 
> Bastien
> 
> 
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode <at> gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Attachment (org.vim): application/octet-stream, 11 KiB
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode <at> gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode