keymap to copy relative path of file

This commit is contained in:
2025-10-24 11:46:49 +05:00
parent be35b62a87
commit 5c1ae1da4a

View File

@ -49,5 +49,8 @@ keymap("n", "<S-h>", ":tabprevious<CR>", opts)
-- Copy to clipboard -- Copy to clipboard
keymap("v", "<C-c>", "\"+y", opts) keymap("v", "<C-c>", "\"+y", opts)
-- Copy relative path of current ile to clipboard
keymap("n", "<C-y>", ":let @+ = expand(\"%\")<CR>", opts)
--Close buffer --Close buffer
-- keymap("n", "<C-w>", ":bd | bp <CR>", opts) -- keymap("n", "<C-w>", ":bd | bp <CR>", opts)