From 4c8bdcedabfe1b4bbc6cc9abc31eb4f71e7d40b2 Mon Sep 17 00:00:00 2001 From: typebrook Date: Fri, 19 Oct 2018 13:30:54 +0800 Subject: update --- .vimrc | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/.vimrc b/.vimrc index 77e51e9..0c84aea 100644 --- a/.vimrc +++ b/.vimrc @@ -9,22 +9,6 @@ set mouse=a nmap :q -""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" => Open URL under cursor -""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" Solution is here: https://stackoverflow.com/questions/9458294/ -function! HandleURL() - let s:uri = matchstr(getline("."), '[a-z]*:\/\/[^ >,;]*') - echo s:uri - if s:uri != "" - silent exec "!xdg-open ".s:uri."" - else - echo "No URI found in line." - endif -endfunction -nmap gx :call HandleURL() - - """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Make Alt key works on Gnome terminal """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -- cgit v1.2.3-70-g09d2