diff --git a/README.md b/README.md index 5054370..66b0d3c 100644 --- a/README.md +++ b/README.md @@ -140,6 +140,7 @@ As usual, to have your system use `vimpager` in place of `less`, you'll need to |:-----------------------|:----:|-------------------------------------------------:| | \\ | ALL | Toggle the menubar **(gvim)** | | \\ | ALL | Toggle the toolbar **(gvim)** | +| \\ | ALL | Toggle the scrollbars **(gvim)** | ### Complete Reference ### diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index c336c2e..2745d8a 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -107,6 +107,7 @@ " (gvim toggles) " | (A) -> toggle the menubar " | (A) -> toggle the toolbar +" | (A) -> toggle the scrollbars " " (spellcheck) " ?+ | (N) -> add the selected word to the local dictionary @@ -476,6 +477,11 @@ nnoremap ":if &go=~#'T'set go-=Telseset go+=Tendif:echo 'Toolbar toggled'" vnoremap ":if &go=~#'T'set go-=Telseset go+=Tendifgv" inoremap ":if &go=~#'T'set go-=Telseset go+=Tendif" + + "toggle the scrollbars + nnoremap ":if &go=~#'l'set go-=lRbelseset go+=lRbendif:echo 'Scrollbars toggled'" + vnoremap ":if &go=~#'l'set go-=lRbelseset go+=lRbendifgv" + inoremap ":if &go=~#'l'set go-=lRbelseset go+=lRbendif" "} "SPELLCHECK:{ diff --git a/vim/config/settings.vim b/vim/config/settings.vim index 90337ff..acb19bb 100644 --- a/vim/config/settings.vim +++ b/vim/config/settings.vim @@ -16,9 +16,6 @@ set guioptions+=i "have the gui use the vim icon set guioptions+=p "enable pointer callbacks for X11 (required by some WMs) set guioptions+=h "prevent the cursor jumping to the longest line while scrolling - set guioptions+=l "enable left-hand scrollbars - set guioptions+=R "enable right-hand scrollbars when there's a split window - set guioptions+=b "enable bottom scrollbars set winaltkeys=no "don't select the menu when pressing the alt-keys "}}}