aboutsummaryrefslogtreecommitdiff
path: root/vimrc-common
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc-common')
-rw-r--r--vimrc-common4
1 files changed, 3 insertions, 1 deletions
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")
203 autocmd BufWinEnter * if &previewwindow | setlocal nonumber nolist signcolumn=no filetype=c nobuflisted | endif 203 autocmd BufWinEnter * if &previewwindow | setlocal nonumber nolist signcolumn=no filetype=c nobuflisted | endif
204 204
205 " Workaround: Allows Vim to yank text within wayland 205 " Workaround: Allows Vim to yank text within wayland
206 if $XDG_SESSION_TYPE ==# 'wayland' && !has('nvim') 206 " XDG_SESSION_TYPE is only set if a login manager was used
207 " WAYLAND_DISPLAY should always work
208 if ($XDG_SESSION_TYPE ==# 'wayland' || ! empty($WAYLAND_DISPLAY)) && !has('nvim')
207 autocmd TextYankPost * call system("wl-copy", getreg('+')) 209 autocmd TextYankPost * call system("wl-copy", getreg('+'))
208 endif 210 endif
209 211
..