ojroques / vim-oscyank

A Vim plugin to copy text through SSH with OSC52
BSD 2-Clause "Simplified" License
629 stars 39 forks source link

Removing indentation? #37

Closed djensenius closed 1 year ago

djensenius commented 1 year ago

I seem to be losing my indentation and a line break when copying a full line. Was there a change recently that caused this?

ojroques commented 1 year ago

Hello,

Yes the last commit refactored the code and the option to trim whitespaces is now the default. You can change that with:

let g:oscyank_trim = 0
djensenius commented 1 year ago

Thanks, just posting to this issue for visibility, here is how I have it set up using lazy.nvim:

https://github.com/djensenius/dotfiles/blob/7f6e928979c87578aabd86142efb00e296fffbcb/nvim/lua/plugins/oscyank.lua

ojroques commented 1 year ago

Thanks! Note that vim.g.oscyank_term is not used anymore so you can safely remove it.

ojroques commented 1 year ago

Note that the latest commit set the default trim option back to false as it seems to cause confusion.