mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-09 15:06:38 -05:00
Disabled gvim scrollbars by default and readded the toggle (\<f3>)
This commit is contained in:
parent
f76f52bfbe
commit
5c39279877
3 changed files with 7 additions and 3 deletions
|
@ -140,6 +140,7 @@ As usual, to have your system use `vimpager` in place of `less`, you'll need to
|
|||
|:-----------------------|:----:|-------------------------------------------------:|
|
||||
| \<Backslash\>\<F1\> | ALL | Toggle the menubar **(gvim)** |
|
||||
| \<Backslash\>\<F2\> | ALL | Toggle the toolbar **(gvim)** |
|
||||
| \<Backslash\>\<F3\> | ALL | Toggle the scrollbars **(gvim)** |
|
||||
|
||||
### Complete Reference ###
|
||||
|
||||
|
|
|
@ -107,6 +107,7 @@
|
|||
" (gvim toggles)
|
||||
" <Leader><F1> | (A) -> toggle the menubar
|
||||
" <Leader><F2> | (A) -> toggle the toolbar
|
||||
" <Leader><F3> | (A) -> toggle the scrollbars
|
||||
"
|
||||
" (spellcheck)
|
||||
" ?+ | (N) -> add the selected word to the local dictionary
|
||||
|
@ -476,6 +477,11 @@
|
|||
nnoremap <silent><expr> <Leader><F2> ":if &go=~#'T'<Bar>set go-=T<Bar>else<Bar>set go+=T<Bar>endif<CR>:echo 'Toolbar toggled'<CR>"
|
||||
vnoremap <silent><expr> <Leader><F2> "<Esc>:if &go=~#'T'<Bar>set go-=T<Bar>else<Bar>set go+=T<Bar>endif<CR>gv"
|
||||
inoremap <silent><expr> <Leader><F2> "<C-O>:if &go=~#'T'<Bar>set go-=T<Bar>else<Bar>set go+=T<Bar>endif<CR>"
|
||||
|
||||
"toggle the scrollbars
|
||||
nnoremap <silent><expr> <Leader><F3> ":if &go=~#'l'<Bar>set go-=lRb<Bar>else<Bar>set go+=lRb<Bar>endif<CR>:echo 'Scrollbars toggled'<CR>"
|
||||
vnoremap <silent><expr> <Leader><F3> "<Esc>:if &go=~#'l'<Bar>set go-=lRb<Bar>else<Bar>set go+=lRb<Bar>endif<CR>gv"
|
||||
inoremap <silent><expr> <Leader><F3> "<C-O>:if &go=~#'l'<Bar>set go-=lRb<Bar>else<Bar>set go+=lRb<Bar>endif<CR>"
|
||||
"}
|
||||
|
||||
"SPELLCHECK:{
|
||||
|
|
|
@ -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
|
||||
"}}}
|
||||
|
||||
|
|
Loading…
Reference in a new issue