center page up and page down
This commit is contained in:
parent
bdb29f4e51
commit
046eee0b40
1 changed files with 3 additions and 1 deletions
|
@ -48,6 +48,8 @@ U.keymaps({
|
||||||
mode = "v",
|
mode = "v",
|
||||||
},
|
},
|
||||||
{ "<Esc>", "<C-\\><C-n>", desc = "Escape the terminal", mode = "t" },
|
{ "<Esc>", "<C-\\><C-n>", desc = "Escape the terminal", mode = "t" },
|
||||||
|
{ "<C-d>", "<C-d>zz", desc = "Vertical half page down and center cursor" },
|
||||||
|
{ "<C-u>", "<C-u>zz", desc = "Vertical half page up and center cursor" },
|
||||||
|
|
||||||
-- Buffers
|
-- Buffers
|
||||||
{ "<leader>b", "<cmd>b#<cr>", desc = "Switch to last buffer", mode = nvx },
|
{ "<leader>b", "<cmd>b#<cr>", desc = "Switch to last buffer", mode = nvx },
|
||||||
|
@ -55,7 +57,7 @@ U.keymaps({
|
||||||
"<leader>q",
|
"<leader>q",
|
||||||
function()
|
function()
|
||||||
-- Custom close/quituto
|
-- Custom close/quituto
|
||||||
--
|
--
|
||||||
-- * if non empty buffer, we will simply open a new empty buffer unless
|
-- * if non empty buffer, we will simply open a new empty buffer unless
|
||||||
-- it is in the close always list
|
-- it is in the close always list
|
||||||
-- * if empty buffer, then we will quit this buffer
|
-- * if empty buffer, then we will quit this buffer
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue