Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to change the left margin in gvim

Tags:

vim

I have gvim 7.3 on XP.
My problem is that when I edit a file and have line numbers turned off, the text is too close to the left window margin. I don't want to add leading white space, I want to increase the margin. When I have line numbers on (which I don't like), there is sufficient space between the left window border and the line number, and sufficient space between the line number and the text. But there is no left margin when line numbers are turned off.
I would like to increase this margin, but don't know how it is addressed.

like image 529
user675368 Avatar asked Oct 25 '11 17:10

user675368


1 Answers

I never had any problems with the text being too close to the left window margin, but if you prefer text more in the screen middle (horizontal-wise) you might be interested in VimRoom. It is a distraction free plugin, but feel free to throw out the parts you don't like.

So instead of this

enter image description here

you get this

enter image description here

like image 186
Rook Avatar answered Sep 30 '22 13:09

Rook