Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to add some padding between my text and the left edge of the window (or the right edge of the line numbers).

alt text

share|improve this question

2 Answers 2

up vote 4 down vote accepted

I set the line number background to match the text background (black in both cases), so this gives a visual buffer between the numbers & the text. I also set the line numbering to be dark grey so they are pretty unobtrusive.

Setting the line number background to match the text is simply a matter of removing the "bg" definitions from your LineNr definition entirely. The relevant section of my colorscheme, including the current line highlighting, is this:

hi CursorLine   guibg=#333333
hi LineNr       guifg=#555555

So the end result looks like this:

enter image description here

(note I use relative line numbers via set relativenumber).

share|improve this answer

:help foldcolumn

the foldcolumn is used normally to display fold-markers .. but that gives you space as well.

share|improve this answer
1  
Unfortunately 'foldcolumn' doesn't appear between the number column and the buffer text. –  Heptite Oct 31 '10 at 22:34
    
@Heptite: good point. –  akira Nov 1 '10 at 6:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.