Skip to content

Commit 9864da1

Browse files
committed
Change default "top" binding to "u" key
1 parent e5dbe0b commit 9864da1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ New key mappings available in the scroll mode:
1111
- `j` / `k` — scroll 5 lines down / up
1212
- `l` / `h` — scroll page down / up
1313
- `b` — scroll to the ending of the buffer (bottom)
14-
- `<Space>` — scroll to the beginning of the buffer
14+
- `u` — scroll to the beginning of the buffer (up)
1515
- `;` — quit the scroll mode
1616
- `-` — quit the scroll mode and delete the buffer
1717

@@ -74,7 +74,7 @@ let mapleader = "\<Space>"
7474
\ "pagedown": ["l"],
7575
\ "pageup": ["h"],
7676
\ "bottom": ["b"],
77-
\ "top": ["<Space>"],
77+
\ "top": ["u"],
7878
\ "exit": [";"],
7979
\ "bdelete": ["-"]
8080
\ }

autoload/scrollmode/const.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ let g:scrollmode#const#default_actions = {
99
\ "pagedown": ["l"],
1010
\ "pageup": ["h"],
1111
\ "bottom": ["b"],
12-
\ "top": ["<Space>"],
12+
\ "top": ["u"],
1313
\ "exit": [";"],
1414
\ "bdelete": ["-"]
1515
\ }

autoload/scrollmode/tools.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function! scrollmode#tools#dump_mappings(keys, mode, global) abort
2121
\ "lhs": l:key,
2222
\ "mode": a:mode,
2323
\ }
24-
call Restore_mappings({ l:key : buf_local_map })
24+
call scrollmode#tools#restore_mappings({ l:key : buf_local_map })
2525
endfor
2626
else
2727
for l:key in a:keys

0 commit comments

Comments
 (0)