1 parent e7a736a commit 89e630aCopy full SHA for 89e630a
1 file changed
vim/plugged/supplemental/plugin/simple-gist.vim
@@ -14,9 +14,9 @@ endif
14
command! -nargs=* -range=% Gist
15
\ let b:gist_filename = expand('%:t') |
16
\ if &bt != 'nofile' && len(b:gist_filename) |
17
- \ let b:gist_args = '-f %' |
+ \ let b:gist_args = '-f '.b:gist_filename |
18
\ else |
19
\ let b:gist_args = '' |
20
\ endif |
21
- \ exe '<line1>,<line2>w !gh gist create '.b:gist_args.' <args>' |
+ \ exe '<line1>,<line2>w !gh gist create '.b:gist_args.' <args> 2> /dev/null' |
22
\ unlet b:gist_filename b:gist_args
0 commit comments