diff options
author | Max Christian Pohle | 2020-06-26 10:13:58 +0200 |
---|---|---|
committer | Max Christian Pohle | 2020-06-26 13:43:27 +0200 |
commit | b68fec17407aa70fdd4cc5c88667ac2d2f49658a (patch) | |
tree | 113528e165b486cbf2069f220bdca949b1dcd18d /vimrc-common | |
parent | dbcaab09f2b1f2b6256364407fa67ee67f3cdc66 (diff) | |
download | vim-karlmarks-b68fec17407aa70fdd4cc5c88667ac2d2f49658a.tar.bz2 vim-karlmarks-b68fec17407aa70fdd4cc5c88667ac2d2f49658a.zip |
Hotfixes to improve compatibility with python
Diffstat (limited to 'vimrc-common')
-rw-r--r-- | vimrc-common | 4 |
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 | ||