[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Vim и выравнивание текста по ширине



On Fri, 17 Mar 2006 21:36:42 +0300
"Dmitry E. Oboukhov" <dimka@avanto.org> wrote:

> как ограничить ширину текста я нашел,б а как сделать чтобы он выравнивал
> текст  по ширине? чтобы получился аналог align="justify" ?

В доке у них:

JUSTIFYING TEXT

Vim has no built-in way of justifying text.  However, there is a neat macro
package that does the job.  To use this package, execute the following
command: >

	:runtime macros/justify.vim

This Vim script file defines a new visual command "_j". To justify a block of
text, highlight the text in Visual mode and then execute "_j".
   Look in the file for more explanations.  To go there, do "gf" on this name:
$VIMRUNTIME/macros/justify.vim.

An alternative is to filter the text through an external program.  Example: >

	:%!fmt


Только что-то у меня по написанному не вышло, а в emacs это дело
нормально работает.



Reply to: