From 906e4bf006317e53f407910ff1b089795060a1a1 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Fri, 28 May 2021 19:01:05 +0200 Subject: vim: add vim-oscyank --- dotfiles/vim.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dotfiles') diff --git a/dotfiles/vim.lua b/dotfiles/vim.lua index ff29d30..27fa722 100644 --- a/dotfiles/vim.lua +++ b/dotfiles/vim.lua @@ -221,3 +221,9 @@ require("lualine").setup { -- Snippets.nvim require("snippets").use_suggested_mappings() + +-- OSCyank + +-- Text yanked into the "t register gets copied using OSC52 escape sequences +-- (e.g. goes through SSH) +vim.cmd "autocmd TextYankPost * if v:event.regname is 't' | OSCYankReg t | endif" -- cgit v1.2.3