Created
May 22, 2020 02:41
-
-
Save exdeniz/a1dbd94813b0101896b5aa084f75d24c to your computer and use it in GitHub Desktop.
VIM and wayland with wl-clipboard fixed problem with pasting content from GTK3 with ^M at the end of lines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if !empty($WAYLAND_DISPLAY) | |
let g:clipboard = { | |
\ 'name': 'wayland-strip-carriage', | |
\ 'copy': { | |
\ '+': 'wl-copy --foreground --type text/plain', | |
\ '*': 'wl-copy --foreground --type text/plain --primary', | |
\ }, | |
\ 'paste': { | |
\ '+': {-> systemlist('wl-paste --no-newline | tr -d "\r"')}, | |
\ '*': {-> systemlist('wl-paste --no-newline --primary | tr -d "\r"')}, | |
\ }, | |
\ 'cache_enabled': 1, | |
\ } | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found here: neovim/neovim#10223 (comment)