diff --git a/README.md b/README.md index a626387..cd1475b 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,8 @@ A pre-configured, performance-oriented Neovim setup designed to get you from zer * **Git Integration:** Quick access to Git commands using `vim-fugitive`. * **Custom Dashboard:** A branded startup screen via `dashboard-nvim` with quick-access shortcuts to your most common actions. +cdcscdscsd + ## Essential Keybindings The **Leader Key** is set to `Space`. @@ -36,7 +38,8 @@ The **Leader Key** is set to `Space`. | **Internal Yank** | `y` | Copy selected text (Visual mode) *inside* Neovim only. | | **Internal Paste** | `p` | Paste text (Normal mode) last copied/deleted *inside* Neovim. | | **System Copy** | `y` |Copy selected text (Visual mode) to the **system clipboard**. | -| **System Paste** | `p` | Paste text (Normal mode) from the **system clipboard**. | +| **System Paste After** | `p` | Paste from **system clipboard** *after* cursor (Normal/Visual) | +| **System Paste Before** | `p` | Paste from **system clipboard** *before* cursor (Normal/Visual) | **Note:** Dashboard keybindings are active only on the dashboard screen and do not require the leader key prefix. diff --git a/lua/config/keybinds.lua b/lua/config/keybinds.lua index f03bab3..ce7ede2 100644 --- a/lua/config/keybinds.lua +++ b/lua/config/keybinds.lua @@ -3,8 +3,10 @@ vim.g.mapleader = " " vim.keymap.set("n", ";", ":Dashboard", { desc = "Return to Dashboard", silent = true }) -- Copy visual selection to system clipboard using Leader + y vim.keymap.set("v", "y", '"+y', { desc = "Copy to system clipboard" }) --- Paste from system clipboard using Leader + p -vim.keymap.set("n", "p", '"+p', { desc = "Paste from system clipboard" }) +-- Paste from system clipboard AFTER the cursor (Normal & Visual mode) +vim.keymap.set({ "n", "v" }, "p", '"+p', { desc = "Paste from system clipboard after" }) +-- Paste from system clipboard BEFORE the cursor (Normal & Visual mode) +vim.keymap.set({ "n", "v" }, "P", '"+P', { desc = "Paste from system clipboard before" }) vim.api.nvim_create_autocmd("FileType", { pattern = "netrw", callback = function(event)