Re: [Orgmode] Vim folding/syntax highlighting?

2010-05-18 Thread Jean-Marie Gaillourdet
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  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  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@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


org.vim
Description: Binary data
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Vim folding/syntax highlighting?

2010-04-29 Thread Michael Brand

Hi Nathan

Does it matter for you if the modal (i/ESC etc.) editor with the vi key 
bindings that you like to use is run by Vim or Emacs? If not, then you can 
use Emacs with viper-mode as a minor mode for the emulation of the vi key 
bindings together with org-mode as the major mode. This is how I use Emacs 
and it feels just like a Vim that would have the full implementation of the 
org-mode and more.


See also here:
http://www.gnu.org/software/emacs/manual/html_node/viper/index.html
http://thread.gmane.org/gmane.emacs.orgmode/17508

Michael


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Vim folding/syntax highlighting?

2010-04-29 Thread Bastien
Nathan Neff  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@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Vim folding/syntax highlighting?

2010-04-29 Thread Nathan Neff
Does anyone know of an org-mode syntax file and/or folding definition
for Vim?

I use Vim quite a bit, and would like to have *.org files highlighted nicely.

I'd also like to use Vim's folding capabilities to be able to fold the
headlines like org-mode does.

I'll probably write a syntax file and a folding method if nobody
knows of any existing ones.

Thanks,
--Nate


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode