File tree Expand file tree Collapse file tree 4 files changed +25
-23
lines changed
Expand file tree Collapse file tree 4 files changed +25
-23
lines changed Original file line number Diff line number Diff line change 1414# 8) Then just paste the shortcut there so it gets started automatically.
1515#
1616# More Info: https://medium.com/javarevisited/using-wsl-2-with-x-server-linux-on-windows-a372263533c3
17- export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0
18- export LIBGL_ALWAYS_INDIRECT=0
17+ # export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0
18+ # export LIBGL_ALWAYS_INDIRECT=0
1919
2020########################################################################################## VARIABLES
2121
Original file line number Diff line number Diff line change @@ -85,14 +85,15 @@ autocmd FileChangedShellPost *
8585" Automatically update the working directory to the current file's path.
8686" autocmd BufEnter * silent! lcd %:p:h
8787
88- " " WSL yank support
89- " let s:clip = '/mnt/c/Windows/System32/clip.exe' " change this path according to your mount point
90- " if executable(s:clip)
91- " augroup WSLYank
92- " autocmd!
93- " autocmd TextYankPost * if v:event.operator ==# 'y' | call system(s:clip, @0) | endif
94- " augroup END
95- " endif"
88+ " WSL yank support
89+ let s: clip = ' /mnt/c/Windows/System32/clip.exe' " change this path according to your mount point
90+ if executable (s: clip )
91+ augroup WSLYank
92+ autocmd !
93+ autocmd TextYankPost * if v: event .operator == # ' y' | call system (s: clip , @0 ) | endif
94+ augroup END
95+ endif
96+
9697
9798" autocmd BufWinEnter,BufRead,BufNewFile prettierrc set filetype=yaml
9899
Original file line number Diff line number Diff line change @@ -48,18 +48,19 @@ if has('nvim') " =======[ Configurations that are only applied when using neovim
4848
4949 endif
5050
51- let g: clipboard = {
52- \ ' name' : ' xclip' ,
53- \ ' copy' : {
54- \ ' +' : ' xclip -selection clipboard' ,
55- \ ' *' : ' xclip -selection clipboard' ,
56- \ },
57- \ ' paste' : {
58- \ ' +' : ' xclip -selection clipboard -o' ,
59- \ ' *' : ' xclip -selection clipboard -o' ,
60- \ },
61- \ ' cache_enabled' : 1 ,
62- \ }
51+ " Hopefully Don't need this clipboard stuff for WSL2 anymore remove once confirmed.
52+ " let g:clipboard = {
53+ " \ 'name': 'xclip',
54+ " \ 'copy': {
55+ " \ '+': 'xclip -selection clipboard',
56+ " \ '*': 'xclip -selection clipboard',
57+ " \ },
58+ " \ 'paste': {
59+ " \ '+': 'xclip -selection clipboard -o',
60+ " \ '*': 'xclip -selection clipboard -o',
61+ " \ },
62+ " \ 'cache_enabled': 1,
63+ " \ }
6364
6465 set guifont = FiraCode\ NF:h16
6566
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ set showmode
168168" ----------------------------------------------------------------------------------------
169169
170170" Use the "+ register for clipboard.
171- " set clipboard=unnamedplus
171+ " set clipboard+ =unnamedplus
172172
173173" Set an other column on the left for signs (or other information).
174174" set signcolumn=yes
You can’t perform that action at this time.
0 commit comments