<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,8 +1,8 @@
 &quot;=============================================================================
 &quot; File: gist.vim
 &quot; Author: Yasuhiro Matsumoto &lt;mattn.jp@gmail.com&gt;
-&quot; Last Change: 23-Jan-2009. Jan 2008
-&quot; Version: 1.7
+&quot; Last Change: 27-Jan-2009. Jan 2008
+&quot; Version: 1.8
 &quot; Usage:
 &quot;
 &quot;   :Gist
@@ -50,6 +50,20 @@
 &quot;     # detect filetype always.
 &quot;     let g:gist_detect_filetype = 2
 &quot;
+&quot;   * if you want to open browser after the post...
+&quot;
+&quot;     let g:gist_open_browser_after_post = 1
+&quot;
+&quot;   * if you want to change the browser...
+&quot;
+&quot;     let g:gist_browser_command = 'w3m %URL%'
+&quot;
+&quot;       or
+&quot;
+&quot;     let g:gist_browser_command = 'opera %URL% &amp;'
+&quot;
+&quot;     on windows, should work with your setting.
+&quot;
 &quot; GetLatestVimScripts: 2423 1 :AutoInstall: gist.vim
 
 if &amp;cp || (exists('g:loaded_gist_vim') &amp;&amp; g:loaded_gist_vim)
@@ -67,6 +81,18 @@ if !executable('curl')
   finish
 endif
 
+if !exists('g:gist_open_browser_after_post')
+  let g:gist_open_browser_after_post = 0
+endif
+
+if !exists('g:gist_browser_command')
+  if has('win32')
+    let g:gist_browser_command = &quot;!start rundll32 url.dll,FileProtocolHandler %URL%&quot;
+  else
+    let g:gist_browser_command = &quot;firefox %URL% &amp;&quot;
+  endif
+endif
+
 if !exists('g:gist_detect_filetype')
   let g:gist_detect_filetype = 0
 endif
@@ -206,6 +232,7 @@ function! s:GistPut(user, token, content, private)
   let res = matchstr(split(res, &quot;\n&quot;), '^Location: ')
   let res = substitute(res, '^.*: ', '', '')
   echo 'done: '.res
+  return res
 endfunction
 
 function! Gist(line1, line2, ...)
@@ -240,7 +267,7 @@ function! Gist(line1, line2, ...)
     elseif len(arg) &gt; 0
       echoerr 'Invalid arguments'
       unlet args
-      return
+      return 0
     endif
   endfor
   unlet args
@@ -255,8 +282,17 @@ function! Gist(line1, line2, ...)
     call s:GistGet(g:github_user, g:github_token, gistid, clipboard)
   else
     let content = join(getline(a:line1, a:line2), &quot;\n&quot;)
-    call s:GistPut(g:github_user, g:github_token, content, private)
+    let url = s:GistPut(g:github_user, g:github_token, content, private)
+    if len(url) &gt; 0 &amp;&amp; g:gist_open_browser_after_post
+      let cmd = substitute(g:gist_browser_command, '%URL%', url, 'g')
+      if cmd =~ '^!'
+        silent! exec  cmd
+      else
+        call system(cmd)
+      endif
+    endif
   endif
+  return 1
 endfunction
 
 command! -nargs=? -range=% Gist :call Gist(&lt;line1&gt;, &lt;line2&gt;, &lt;f-args&gt;)</diff>
      <filename>gist.vim</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ script_name: Gist.vim
 script_id: '2423'
 script_type: utility
 script_package: gist.vim
-script_version: '1.7'
+script_version: '1.8'
 required_vim_version: '7.0'
 summary: vimscript for gist
 
@@ -49,6 +49,20 @@ detailed_description: |
 
       let g:gist_detect_filetype = 1
 
+    if you want to open browser after the post...
+
+      let g:gist_open_browser_after_post = 1
+
+    if you want to change the browser...
+
+      let g:gist_browser_command = 'w3m %URL%'
+
+        or
+
+      let g:gist_browser_command = 'opera %URL% &amp;'
+
+      on windows, should work with your setting.
+
   Require:
     curl, and if you want to use profile of git, it require git command.
 
@@ -56,6 +70,9 @@ install_details: |
   copy it to your plugin directory.
 
 versions:
+- '1.8': |
+   This is an upgrade for Gist.vim: added new option g:gist_open_browser_after_post/g:gist_browser_command to open posted gist.
+
 - '1.7': |
    This is an upgrade for Gist.vim: now changed argument for putting clipboard as ':Gist -c XXXXX'.
 </diff>
      <filename>gist.vim.vimup</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2a4f97bcd7881703e0109c2f731a1b699c553ed3</id>
    </parent>
  </parents>
  <author>
    <name>mattn</name>
    <email>mattn.jp@gmail.com</email>
  </author>
  <url>http://github.com/mattn/gist-vim/commit/be2557663828a8e269d6b2a5828d6cc5b0eea780</url>
  <id>be2557663828a8e269d6b2a5828d6cc5b0eea780</id>
  <committed-date>2009-01-26T18:04:37-08:00</committed-date>
  <authored-date>2009-01-26T18:04:37-08:00</authored-date>
  <message>added new option g:gist_open_browser_after_post/g:gist_browser_command to open posted gist.</message>
  <tree>59133c7db0af62a6de58acda48feb9af454922d6</tree>
  <committer>
    <name>mattn</name>
    <email>mattn.jp@gmail.com</email>
  </committer>
</commit>
