Search code examples
vim

How to disable the windows gvim vertical scroolbar in the vimrc file?


In Windows 7, my Gvim version 7.4 has a vertical scroll bar on the right side of the edit area, even if the edit area is not scrollable.

The scroll bar constricts my edit area, so I want to disable it completely, no matter if the edit area is scrollable or not. Is there a setting I can change in my .vimrc file to achieve this?

I searched, but cannot find an answer in:


Solution

  • You can change the guioptions

    :set guioptions-=r
    

    :help guioptions provides details for all the possible options.

    'r' Right-hand scrollbar is always present.