mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-09 15:06:38 -05:00
Reduced the scrolloff rows/cols from 3 to 1, and added a setting to
make holding <ctrl> while using the scrollwheel on a mouse change from scrolling up/down to scrolling left/right
This commit is contained in:
parent
17111bdbf8
commit
f2de4c3a33
2 changed files with 9 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
|||
"==========================="
|
||||
"
|
||||
" Reference: (view plugin documentation for the full list of commands each offers)
|
||||
" <Ctrl-z>, | (A) -> follows an emme term to expand it (ie: 'html:5')
|
||||
" <Ctrl-z>, | (A) -> enter this following an emme 'word' (ie: html:5)
|
||||
" <Leader><F2> | (N) -> toggle hexhighlight's hexcode to colours in :gui
|
||||
" cs'" | (N) -> change surrounding '' to "" (any delimiters work)
|
||||
" cs"<q> | (N) -> change surrounding "" to the tag: <q></q>
|
||||
|
@ -11,6 +11,8 @@
|
|||
" ds" | (N) -> delete surrounding ""
|
||||
"
|
||||
" Mappings:
|
||||
" <Ctrl-ScrollUp> | (A) -> scroll right
|
||||
" <Ctrl-ScrollDown> | (A) -> scroll left
|
||||
" <Shift-MiddleClick> | (A) -> unbind this from vim so xorg can paste
|
||||
" <Leader><n> | (A) -> go to the next open tab
|
||||
" <Leader><p> | (A) -> go to the previous open tab
|
||||
|
@ -58,10 +60,14 @@
|
|||
"
|
||||
|
||||
"MAPPINGS: GENERAL KEYBINDINGS AND REBINDINGS {{{
|
||||
"map shift to enable middle-click paste while being held
|
||||
"hold shift to enable middle-click paste
|
||||
noremap <S-Insert> <MiddleMouse>
|
||||
noremap! <S-Insert> <MiddleMouse>
|
||||
|
||||
"hold ctrl to scroll left/right instead of up/down
|
||||
noremap <C-ScrollWheelUp> 3zl
|
||||
noremap <C-ScrollWheelDown> 3zh
|
||||
|
||||
"tab and untabbing selected blocks
|
||||
vnoremap <Tab> >gv
|
||||
vnoremap <S-Tab> <gv
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
"GENERAL: ANYTHING THAT DOESN'T FIT ELSEWHERE {{{
|
||||
set cursorline cursorcolumn "enable row/column highlighting
|
||||
set splitright "add new tiles on the right (and not left) when added
|
||||
set scrolloff=3 sidescrolloff=3 "how many vertical and horizontal characters left before scrolling
|
||||
set scrolloff=1 sidescrolloff=1 "how many vertical and horizontal characters left before scrolling
|
||||
set number "enable line numbers
|
||||
set list listchars=tab:>-,trail:- "display whitespace
|
||||
set nowrap "disable line wrapping
|
||||
|
|
Loading…
Reference in a new issue