Add reader for url preview

This commit is contained in:
sfigato 2022-02-21 18:45:38 +01:00
parent 6e713c1dec
commit 76b7c9e988
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F
2 changed files with 8 additions and 0 deletions

7
config/after/reader.vim Normal file
View File

@ -0,0 +1,7 @@
function s:vertopen_url()
normal! "uyiW
let mycommand = "reader " . @u
execute "vertical terminal " . mycommand
endfunction
noremap <Plug>vertopen_url : call <SID>vertopen_url()<CR>
nmap gx <Plug>vertopen_url

1
vimrc
View File

@ -33,6 +33,7 @@ packloadall
source $VIMHOME/config/after/ale.vim source $VIMHOME/config/after/ale.vim
source $VIMHOME/config/after/language-client.vim source $VIMHOME/config/after/language-client.vim
source $VIMHOME/config/after/reader.vim
""" general """ general