✨ Pageup/pagedown now recenter in vim
This commit is contained in:
parent
f663b6b141
commit
2809ea08cf
3 changed files with 20 additions and 1 deletions
|
|
@ -20,6 +20,14 @@ keymap('n', '<c-p>', '<c-w>:FZFExplore<CR>', {})
|
|||
-- vim.cmd[[nnoremap gb :silent :GitBlameToggle]]
|
||||
keymap('n', '<c-g>', '<c-w>:GitBlameToggle<CR>', {})
|
||||
|
||||
-- pageup/pagedown autotmatically recenters
|
||||
vim.cmd[[:map <C-d> <C-d>zz]]
|
||||
vim.cmd[[:map <C-u> <C-u>zz]]
|
||||
|
||||
-- search automatically recenters
|
||||
vim.cmd[[nnoremap n nzz]]
|
||||
vim.cmd[[nnoremap N Nzz]]
|
||||
|
||||
-- open ripgrep
|
||||
vim.cmd[[nnoremap rg :silent :Rg]]
|
||||
|
||||
|
|
|
|||
|
|
@ -20,6 +20,14 @@ keymap('n', '<c-p>', '<c-w>:FZFExplore<CR>', {})
|
|||
-- vim.cmd[[nnoremap gb :silent :GitBlameToggle]]
|
||||
keymap('n', '<c-g>', '<c-w>:GitBlameToggle<CR>', {})
|
||||
|
||||
-- pageup/pagedown autotmatically recenters
|
||||
vim.cmd[[:map <C-d> <C-d>zz]]
|
||||
vim.cmd[[:map <C-u> <C-u>zz]]
|
||||
|
||||
-- search automatically recenters
|
||||
vim.cmd[[nnoremap n nzz]]
|
||||
vim.cmd[[nnoremap N Nzz]]
|
||||
|
||||
-- open ripgrep
|
||||
vim.cmd[[nnoremap rg :silent :Rg]]
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,10 @@ gg - go to top of the page
|
|||
shift + g - go to the bottom of the page
|
||||
ctrl u -page up
|
||||
ctrl d - page down
|
||||
/ - forwards slash searches foor the word/term you wish to jump to, just press enter once it is highlighted
|
||||
/ - forwards slash searches for the word/term you wish to jump to, just press enter once it is highlighted
|
||||
? - question mark searches for the word/term you wish to jump to, just press enter once it is highlighted
|
||||
n - jump to the next occurence of search term entered from / or ? (/ goes forwards in document, ? goes backwards in document)
|
||||
N - jump to the previous occurence of search term entered from / or ? (/ goes backwards in document, ? goes forwards in document)
|
||||
:w - writes (my nneovim setup as autosave, but it's still a good feature to have)
|
||||
:q - quits neovim (first neovim command to learn)
|
||||
u - undoes last change (can be used with prepended numbers depending on how many steps you want to undo)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue