Re: vim中输入中文如何设置 text-width ?
On Fri, Sep 09, 2005 at 09:20:10PM +0800, phyrster wrote:
> 大家好,
>
> 我用vim在mutt中写信,英文是可以回卷和自动换行的,我在muttrc中有这样的设置:
>
> ---
> textwidth=77
> set wrap
> ---
>
> 可是如何设置vim让它在输入中文的时候也自动换行呢?
将这两行加到你的.vimrc中即可实现中文的自动换行,但有一点不足就是它会在
标点符号之前端行,不知道这个怎么解决。
set formatoptions=tcqmM " line break can follow an Asian Char and DO NOT insert space before
" or after an Asian Char
>
>
> regards
>
> bxuef
>
> --
> dhammapada says:
>
> Just as there is no path in the sky, there is no man of religion
> outside. Other people take pleasure in multiplicity, but the Buddhas are
> free from it. 254
>
>
>
> --
> To UNSUBSCRIBE, email to debian-chinese-gb-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>
-------------------------
--
Your motives for doing whatever good deed you may have in mind will be
misinterpreted by somebody.
Reply to: