File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
1
" =============================================================================
2
2
" File: gist.vim
3
3
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
4
- " Last Change: 07 -Oct-2013.
4
+ " Last Change: 15 -Oct-2013.
5
5
" Version: 7.1
6
6
" WebPage: http://github.com/mattn/gist-vim
7
7
" License: BSD
@@ -288,14 +288,16 @@ function! s:GistGet(gistid, clipboard)
288
288
endif
289
289
setlocal modifiable
290
290
else
291
- silent only !
291
+ if num_file == 1
292
+ silent only !
293
+ endif
292
294
if get (g: , ' gist_list_vsplit' , 0 )
293
295
exec ' silent noautocmd rightbelow vnew'
294
296
else
295
297
exec ' silent noautocmd rightbelow new'
296
298
endif
297
299
setlocal noswapfile
298
- exec ' noautocmd file' s: bufprefix .a: gistid ." /" .fnameescape (filename)
300
+ silent exec ' noautocmd file' s: bufprefix .a: gistid ." /" .fnameescape (filename)
299
301
endif
300
302
set undolevels = -1
301
303
filetype detect
@@ -472,10 +474,6 @@ endfunction
472
474
" it will just update it.
473
475
" -- by c9s
474
476
"
475
- " embedded gist url format:
476
- "
477
- " Gist: https://gist.github.com/123123
478
- "
479
477
" embedded gist id format:
480
478
"
481
479
" GistID: 123123
You can’t perform that action at this time.
0 commit comments