Skip to content

Commit

Permalink
feat(keymaps)!: change vp => vsp
Browse files Browse the repository at this point in the history
  • Loading branch information
rafi committed May 29, 2024
1 parent 4d212a3 commit 3891b5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ Note that,
| ----- |:----:| ------------------ | ------
| <kbd>Space</kbd>+<kbd>Space</kbd> | 𝐍 𝐕 | Toggle visual-line mode | <small>`V` / <kbd>Escape</kbd></small>
| <kbd>v</kbd> / <kbd>V</kbd> | 𝐕 | Increment/shrink selection | <small>[nvim-treesitter]</small>
| <kbd>vp</kbd> | 𝐍 | Select last paste | <small>[plugins/lsp/keymaps.lua]</small>
| <kbd>vsp</kbd> | 𝐍 | Select last paste | <small>[plugins/lsp/keymaps.lua]</small>
| <kbd>sg</kbd> | 𝐕 | Replace within selected area | <small>[plugins/lsp/keymaps.lua]</small>
| <kbd>Ctrl</kbd>+<kbd>r</kbd> | 𝐕 | Replace selection with step-by-step confirmation | <small>[plugins/lsp/keymaps.lua]</small>
| <kbd>></kbd> / <kbd><</kbd> | 𝐕 | Indent and re-select | <small>[plugins/lsp/keymaps.lua]</small>
Expand Down
2 changes: 1 addition & 1 deletion lua/rafi/config/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ map('n', '<Leader><Leader>', 'V', { desc = 'Visual Mode' })
map('x', '<Leader><Leader>', '<Esc>', { desc = 'Exit Visual Mode' })

-- Select last paste
map('n', 'vp', "'`['.strpart(getregtype(), 0, 1).'`]'", { expr = true, desc = 'Select Paste' })
map('n', 'vsp', "'`['.strpart(getregtype(), 0, 1).'`]'", { expr = true, desc = 'Select Paste' })

-- Quick substitute within selected area
map('x', 'sg', ':s//gc<Left><Left><Left>', { desc = 'Substitute Within Selection' })
Expand Down

0 comments on commit 3891b5e

Please sign in to comment.