Saturday, February 19, 2011

Re: How to add a margin at the left/right side of the text area?

On Fri, Feb 18, 2011 at 10:31:17AM +0100, Christian Brabandt wrote:
> On Fri, February 18, 2011 9:29 am, Yue Wu wrote:
> > As the title. My eyes feel tired with too tight between the left side of
> > the xterm window and vim text area, it would be better if there can be a
> > margin between them.
>
> Well for the left side, you can simply abuse the FoldColumn for that.
> Something like this should work:
> :hi! link FoldColumn Normal
> :set foldcolumn=3
>
> This works best, when you don't use folds. You can set the width up to 12
> chars wide.
>
> For the right side, you can play with the 'linebreak' and 'breakat'
> options. I am not sure, how well this will work though.
>

Sorry for late reply, and thanks for trick! I find that the X resource
xterm*BorderWidth can do what I want, though only works in a x terminal.

--
Regards,
Yue Wu

Key Laboratory of Modern Chinese Medicines
Department of Traditional Chinese Medicine
China Pharmaceutical University
No.24, Tongjia Xiang Street, Nanjing 210009, China

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

Post a Comment