r/vim • u/OwnYou5054 • 10h ago
Tips and Tricks Terminal Vim Integration with Wayland
10
Upvotes
Took a little while to figure this out, but mostly seamless integration of terminal Vim clipboard with Wayland for when you use a version of Vim without clipboard functionality compiled in:
autocmd TextYankPost * call system('wl-copy', @")
autocmd FocusGained * call timer_start(0, {t -> execute('let @" = system("wl-paste")')})