Matt England wrote:
I frequently use automated line wrap (eg, 'wrapmargin', fmt(1) integration, etc) to write documents (like asciidoc sources) in vim.

I'd like to use an automated "unwrap" feature. Does such a thing exist in vim? Or a unix/linux command primitive I can integrate (similar to the way I use 'map v {!}fmt^M' to fix paragraph wrap while I'm editing them?

Even better, might vim include a programmable feature now or in the future to automatically make non-wrapped lines look like wrapped lines much like WYSIWYG editors do?

My main goal: I want to be able to use the spell-and-grammar checking of editors like MS Word when I'm done writing my asciidoc text, but MS Word doesn't handle hard-lines well when doing this. I haven't found another editor that does spell-and-grammar checking as well as word (I couldn't figure out how to get OpenOffice Writer to do it well).

There are other goals, but this is the big one.

-Matt



If you want to format all paragraphs as single lines, set textwidth to a very large number, then reformat:

        :set wm=0 tw=999999
        :normal gggqG


Best regards,
Tony.

Reply via email to