I am not sure how to describe my contribution, it is rather a feature request which should solve a serious Usability issue which I suffer from for a long time staring in the Vim window (since I write python programs in it quite a lot) . I used all possible setup options and color setups to push the best out of the readability in Vim, so now it looks as in attached screenshot (issue.png).
So the thing is, afaik, there is no option to setup left margin of the text window, so it is impossible to control the gap between linenumber column ant text area. And equally, when I hide numbers column, the text literally sticks to the window border. Especially bad it looks in Windows version of Vim (I use Courier New font), since the characters somehow stick to the left boundary of the em
square.
This issue was discussed on Stackoverflow in 2011, here is link:
http://stackoverflow.com/questions/7893390/how-to-change-the-left-margin-in-gvim
but still afaik no solution (?), only some weak workarounds or plugins ... So obviously logical solution would be introducing an option, something like "leftmargin" which would just leave empty gap at line beginnings and therefore solve this issue distinctly. See "solution.png" in attachement to see what I want to get with it.
It would be perfect if one could get also a dotted line between areas like in "solution2.png" but I know, it probably contradicts with text-mode nature of vim.
Predicting the counter-critics, that it will look as if there are spaces at line beginnings - I am working with Vim+Python only so in my case I always know where is the left border of my textfile, same as with block text or other code, so I think there almost no examples where it can cause any problems.
Hope I was clear enough in my intention. Thanks in advance for your comments and special thanks to developers for such a great text editor!
Mikhail V
So yes there are few workarounds and I don't say its really that great global mankind problem, but it starts to be annoying after long hours of work and tacking the lines visually. I didn't know about the dummy column trick, I'll check it out. And dummmy window? Wouldn't it cause windows switching incosistence or switching to it at mouseclicks? But sounds interesting though.
Mikhail
And it was also highly voted, since it really causes problems with code readability. Just in case, I was talking about stock 7.4 version of GUI Windows 32bit Vim. But In my fedora version it is all the same, with only that difference, that fedora's Nimbus font (courier analog) seems to be of a significantly better quality and the characters are correctly centered inside the em square, so the text is not sticking to the left border so badly as with windows' courier. It causes actually another issue - the vertical cursor which is default for input mode is overlapping with characters so instead of "b" i see "o" at the cursor position, for example.
Mikhail
I have managed to compile with this patch under windows with msvs Express 2008. New feature works exactly how I expected. Thank you very much for the effort.
I must say however after playing with it for a while I discovered some artefacts are appearing along the text border. I placed screenshot again on my site:
http://public.beuth-hochschule.de/~s53452/index.htm
So those dots are obviosly parts of the characters' hinting, e.g. from lower-left serifs of letter A, which are swarming up on the left neighbor char squares. Those appear when I scroll through the text up/down with the arrow keys. Furthermore , there is a noticeable slowdown of screen redraw by scrolling. Oddly, scrolling with the mouse wheel or dragging scrollbar with mouse or clicking up/down on the scrollbar arrows does not cause any slowdown and does not cause any artefacts! I cannot give 100% guarantee that slowdowns are caused by this patch, but there is nothing like that in my installed version of vim.
Regards,
Mikhail
Mikhail