aboutsummaryrefslogtreecommitdiff
path: root/vimrc-common
diff options
context:
space:
mode:
authorMax Christian Pohle2020-06-26 10:13:58 +0200
committerMax Christian Pohle2020-06-26 13:43:27 +0200
commitb68fec17407aa70fdd4cc5c88667ac2d2f49658a (patch)
tree113528e165b486cbf2069f220bdca949b1dcd18d /vimrc-common
parentdbcaab09f2b1f2b6256364407fa67ee67f3cdc66 (diff)
downloadvim-b68fec17407aa70fdd4cc5c88667ac2d2f49658a.tar.bz2
vim-b68fec17407aa70fdd4cc5c88667ac2d2f49658a.zip
Hotfixes to improve compatibility with python
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
..