From b68fec17407aa70fdd4cc5c88667ac2d2f49658a Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Fri, 26 Jun 2020 10:13:58 +0200 Subject: Hotfixes to improve compatibility with python --- vimrc-common | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vimrc-common') diff --git a/vimrc-common b/vimrc-common index 6415842..30752fb 100644 --- a/vimrc-common +++ b/vimrc-common @@ -203,7 +203,9 @@ if has("autocmd") autocmd BufWinEnter * if &previewwindow | setlocal nonumber nolist signcolumn=no filetype=c nobuflisted | endif " Workaround: Allows Vim to yank text within wayland - if $XDG_SESSION_TYPE ==# 'wayland' && !has('nvim') + " XDG_SESSION_TYPE is only set if a login manager was used + " WAYLAND_DISPLAY should always work + if ($XDG_SESSION_TYPE ==# 'wayland' || ! empty($WAYLAND_DISPLAY)) && !has('nvim') autocmd TextYankPost * call system("wl-copy", getreg('+')) endif -- cgit v1.2.3