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

19 views
Skip to first unread message

Yue Wu

unread,
Feb 18, 2011, 3:29:31 AM2/18/11
to ml-vim_use
Hello, list,

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.

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

Christian Brabandt

unread,
Feb 18, 2011, 4:31:17 AM2/18/11
to vim...@googlegroups.com
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.

regards,
Christian

Yue Wu

unread,
Feb 19, 2011, 7:58:35 PM2/19/11
to vim...@googlegroups.com

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.

Reply all
Reply to author
Forward
0 new messages