Skip to content

Commit

Permalink
feat(nvim): add mapping to paste above/below
Browse files Browse the repository at this point in the history
  • Loading branch information
sbulav committed Sep 1, 2023
1 parent bed12d8 commit 595c02e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nvim/lua/config/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,7 @@ end, attach_opts)
vim.keymap.set({ "n", "v" }, "]6", function()
require("base64.command").decode()
end, attach_opts)

-- Paste before/after linewise
vim.keymap.set({ "n", "x" }, "[p", '<Cmd>exe "put! " . v:register<CR>', { desc = "Paste Above" })
vim.keymap.set({ "n", "x" }, "]p", '<Cmd>exe "put " . v:register<CR>', { desc = "Paste Below" })

0 comments on commit 595c02e

Please sign in to comment.