|
1 | 1 | "=============================================================================
|
2 | 2 | " File: gist.vim
|
3 | 3 | " Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
4 | | -" Last Change: 03-May-2015. |
| 4 | +" Last Change: 04-Jul-2015. |
5 | 5 | " Version: 7.2
|
6 | 6 | " WebPage: http://github.com/mattn/gist-vim
|
7 | 7 | " License: BSD
|
@@ -362,6 +362,9 @@ function! s:GistGet(gistid, clipboard) abort
|
362 | 362 | echohl ErrorMsg | echomsg 'Gist not found' | echohl None
|
363 | 363 | return
|
364 | 364 | endif
|
| 365 | + augroup GistWrite |
| 366 | + au! |
| 367 | + augroup END |
365 | 368 | for n in range(num_file)
|
366 | 369 | try
|
367 | 370 | let old_undolevels = &undolevels
|
@@ -450,7 +453,6 @@ function! s:GistGet(gistid, clipboard) abort
|
450 | 453 | endif
|
451 | 454 | 1
|
452 | 455 | augroup GistWrite
|
453 | | - au! |
454 | 456 | au! BufWriteCmd <buffer> call s:GistWrite(expand("<amatch>"))
|
455 | 457 | augroup END
|
456 | 458 | endfor
|
|
0 commit comments