Last active
October 17, 2015 13:29
-
-
Save lmullen/b7231f5ce79eba9c6aeb to your computer and use it in GitHub Desktop.
With a file `test.md` in the current Vim buffer, open the file `test.md.pdf` in the OS.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
command! -nargs=0 PDF call PDF() | |
function! PDF() | |
:silent exec "!open ".expand("%:p").".pdf" | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment