feat(vim): add p/P paste for last delete - #16
Conversation
Track text removed by x/dd/D (and dw/d$) in a single yank slot and re-insert it with p (after cursor) or P (before) (KlaatAI#6). Co-authored-by: Cursor <cursoragent@cursor.com>
|
🤖 KlaatAI Review Bot (powered by Klaatu, advisory only — a maintainer makes the real call) Issue match Test coverage Correctness concerns Verdict This is an automated review to help triage faster, not a gate. Nothing here blocks merging. |
|
@Devil1716 Really appreciate you taking the time to improve KlaatCode. Your contribution helps make the project better for everyone. If you haven't already, we'd love it if you could ⭐ star the repository and follow @KlaatAI on GitHub to stay updated with new features and releases. Feel free to keep using KlaatAI for your projects, and don't hesitate to open more issues, suggest ideas, or submit future PRs—we're always happy to have contributors like you in the community. Looking forward to seeing your next contribution. Happy coding! 🚀 |
Summary
x/dd/D(anddw/d$) in one unnamed register.ppastes after the cursor;Ppastes before./vimmode oncopy updated.Test plan
/vimmode on, type a line,Esc,dd,p→ line restoredxthenprestores the deleted character after the cursorPinserts before the cursoryyrequired