Friday, February 18, 2011

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

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

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