Commit 23c9e02
committed
Add <C-e> and <C-y> to scroll one line at a time
Recently I noticed changes with the behavior of my keybinds:
map global normal <C-e> vj
map global normal <C-y> vk
This is because the cursor movement behavior changed with vj and vk. Scrolling
window was previously blocked by the cursor. Now the cursor and selection stays
in place.
I think the view keyboard behaviors are consistent, and coherent with the
current state. But this isn't exactly what we want from <C-e> and <C-y>.
Example, when you start to scroll with <C-e> (your cursor stay in
place), then you press <C-d> (your cursor is moved back to your view).
Example, when you start to scroll with <C-e> (your cursor stay in
place), then you press j or k (your view is pushed back to initial
position).
To solve this, I think we need news and differents default keybinds
<C-e> and <C-y>.1 parent 01fd655 commit 23c9e02
File tree
4 files changed
+28
-5
lines changed- doc/pages
- src
4 files changed
+28
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
| 445 | + | |
| 446 | + | |
445 | 447 | | |
446 | 448 | | |
447 | 449 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
196 | 202 | | |
197 | 203 | | |
198 | 204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1402 | 1402 | | |
1403 | 1403 | | |
1404 | 1404 | | |
1405 | | - | |
| 1405 | + | |
1406 | 1406 | | |
1407 | 1407 | | |
1408 | 1408 | | |
1409 | 1409 | | |
1410 | | - | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
1411 | 1423 | | |
1412 | 1424 | | |
1413 | 1425 | | |
| |||
2422 | 2434 | | |
2423 | 2435 | | |
2424 | 2436 | | |
2425 | | - | |
| 2437 | + | |
2426 | 2438 | | |
2427 | | - | |
2428 | | - | |
| 2439 | + | |
| 2440 | + | |
| 2441 | + | |
| 2442 | + | |
2429 | 2443 | | |
2430 | 2444 | | |
2431 | 2445 | | |
| |||
0 commit comments