Skip to content

Commit

Permalink
Add workaround for gx bug
Browse files Browse the repository at this point in the history
  • Loading branch information
waynee95 committed Nov 21, 2019
1 parent 7ab208c commit e79577b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vim/.vimrc
Expand Up @@ -80,5 +80,10 @@ let g:netrw_altv = 1
let g:netrw_winsize = 25
let g:netrw_browsex_viewer = "firefox" " Make sure to open links via gx with firefox

" Workaround for opening URLs with gx
" See https://github.com/vim/vim/issues/4738#issuecomment-521506447
nmap gx yiW:!xdg-open <cWORD><CR> <C-r>" & <CR><CR>
" Ctrlp.vim
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'

0 comments on commit e79577b

Please sign in to comment.