From 1e81fe5f14c9aaafcd254eae644b82b5434de99f Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sun, 6 Nov 2022 11:21:09 +0000 Subject: [PATCH] Make gx work in WSL --- vimrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vimrc b/vimrc index 5babb2c..638f243 100644 --- a/vimrc +++ b/vimrc @@ -102,6 +102,10 @@ Pack 'tpope/vim-fugitive' Pack 'tpope/vim-eunuch' " vim-vinegar - improved directory browser Pack 'tpope/vim-vinegar' +if wsl#isDetected() + " Make gx work in WSL + let g:netrw_browsex_viewer='cmd.exe /C start' +endif " vim-abolish - CamelCase to under_score to mixedCase " TODO: Copy the good bit remove this plugin Pack 'tpope/vim-abolish'