From 84f366c12054ea765dca557aa650d6ebe0bbe906 Mon Sep 17 00:00:00 2001 From: Marco Herrn Date: Mon, 4 Mar 2019 15:23:52 +0100 Subject: [PATCH] Make preview app configurable - 'let g:asciidoc_preview_app = "firefox"' to use firefox - removed unused variable g:asciidoc_browser --- doc/asciidoc.txt | 6 +++++- ftplugin/asciidoc.vim | 7 ++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/doc/asciidoc.txt b/doc/asciidoc.txt index 8089397..b51970e 100644 --- a/doc/asciidoc.txt +++ b/doc/asciidoc.txt @@ -88,7 +88,10 @@ render AsciiDoc on the fly, the normal mode {of} map can be used to open the current file in the external application. " Preview asciidoc file with `g:asciidoc_preview_app` application - nnoremap of :execute "!open file://" . shellescape(expand('%:p')) . " -a " . g:asciidoc_preview_app + nnoremap of :execute "!" . g:asciidoc_preview_app . " file://" . shellescape(expand('%:p')) + + " Set firefox as the default preview app + let g:asciidoc_preview_app = 'firefox' *3.2* Follow link @@ -326,6 +329,7 @@ command! -buffer -nargs=1 AdocInsertTable call asciidoc#base#insert_table( of :execute "!open file://" . shellescape(expand('%:p')) . " -a " . g:asciidoc_preview_app + nnoremap of :execute "!" . g:asciidoc_preview_app . " file://" . shellescape(expand('%:p')) " Follow link under cursor nnoremap ,gf :AdocFollowLinkUnderCursor edit