diff options
author | typebrook <typebrook@gmail.com> | 2018-10-19 13:30:54 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2018-10-19 13:30:54 +0800 |
commit | 4c8bdcedabfe1b4bbc6cc9abc31eb4f71e7d40b2 (patch) | |
tree | 1332a0a17027d54947a1ebbf94672ecd399a149f | |
parent | 2c811d51f4fa1e42880778e6bf8aee02fe711d44 (diff) |
update
-rw-r--r-- | .vimrc | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -10,22 +10,6 @@ nmap <c-c> :q<cr> | |||
10 | 10 | ||
11 | 11 | ||
12 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | 12 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
13 | " => Open URL under cursor | ||
14 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | ||
15 | " Solution is here: https://stackoverflow.com/questions/9458294/ | ||
16 | function! HandleURL() | ||
17 | let s:uri = matchstr(getline("."), '[a-z]*:\/\/[^ >,;]*') | ||
18 | echo s:uri | ||
19 | if s:uri != "" | ||
20 | silent exec "!xdg-open ".s:uri."" | ||
21 | else | ||
22 | echo "No URI found in line." | ||
23 | endif | ||
24 | endfunction | ||
25 | nmap gx :call HandleURL()<cr> | ||
26 | |||
27 | |||
28 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | ||
29 | " => Make Alt key works on Gnome terminal | 13 | " => Make Alt key works on Gnome terminal |
30 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | 14 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
31 | " Solution is here: https://stackoverflow.com/questions/6778961 | 15 | " Solution is here: https://stackoverflow.com/questions/6778961 |