aboutsummaryrefslogtreecommitdiff
path: root/vim/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vim/.vimrc')
-rw-r--r--vim/.vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index 56993fd..ea200b2 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -73,6 +73,9 @@ set incsearch
set hlsearch
map <LocalLeader>q :nohlsearch<CR>
+" Fix `gx`: https://github.com/vim/vim/issues/4738#issuecomment-856925080
+nnoremap <silent> gx :execute 'silent! !xdg-open ' . shellescape(expand('<cfile>'), 1)<cr>
+
filetype plugin indent on
syntax enable