Friday, September 21, 2012

Redefining paragraph text object?

Hello all.

I was working around a function to map } and { around it. It is useful
for file formats that have other definitions of paragraph other than ^$.
For DocBook, for instance, it is better to use "<para>" and "</para>".

So I thought: it works for navigation, but not for all other operations
regarding paragraph text object. Would it be possible to change
paragraph text object for my own needs?

There is the 'paragraphs' option, but it look too simple, not accepting
regexp. I couldn't extend it far from the basic nroff setting.

Is it possible?

Thank you.

--
Silas Silva

--
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: