diff options
author | Teddy Wing | 2018-04-06 01:40:13 +0200 |
---|---|---|
committer | Teddy Wing | 2018-04-06 01:40:13 +0200 |
commit | 4918150bb463678b1a5eebfe0b8138d4cc7fb82a (patch) | |
tree | 44ee0ccc2c20164b24ee50b9972d214bc49335c3 /bundle/github-url/plugin | |
parent | bcb1336bd008efde95daae0599a656ca67c2d94f (diff) | |
download | dotvim-4918150bb463678b1a5eebfe0b8138d4cc7fb82a.tar.bz2 |
github-url: Copy the URL to the clipboard in addition to printing it
Previously all we did was `echo` the generated URL to the command line.
This was mainly for debugging purposes, but it strikes me that this
would be nice to keep so that users can validate that the correct URL
was generated.
In addition to doing this, though, we need to provide an easy way to
send that URL string into other programs like chat or an input field in
a web browser. Copy the URL to the Mac OS X clipboard to make it easier
to share.
Diffstat (limited to 'bundle/github-url/plugin')
-rw-r--r-- | bundle/github-url/plugin/github_url.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bundle/github-url/plugin/github_url.vim b/bundle/github-url/plugin/github_url.vim index 84f6cce..328a049 100644 --- a/bundle/github-url/plugin/github_url.vim +++ b/bundle/github-url/plugin/github_url.vim @@ -3,4 +3,4 @@ if exists('g:loaded_github_url') endif let g:loaded_github_url = 1 -command! -range=0 GitHubFileURL :echo github_url#GitHubURL(<count>, <line1>, <line2>) +command! -range=0 GitHubFileURL :call github_url#GitHubURL(<count>, <line1>, <line2>) |