Skip to content

Commit 89e630a

Browse files
committed
vim: update gist command
1 parent e7a736a commit 89e630a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

vim/plugged/supplemental/plugin/simple-gist.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ endif
1414
command! -nargs=* -range=% Gist
1515
\ let b:gist_filename = expand('%:t') |
1616
\ if &bt != 'nofile' && len(b:gist_filename) |
17-
\ let b:gist_args = '-f %' |
17+
\ let b:gist_args = '-f '.b:gist_filename |
1818
\ else |
1919
\ let b:gist_args = '' |
2020
\ endif |
21-
\ exe '<line1>,<line2>w !gh gist create '.b:gist_args.' <args>' |
21+
\ exe '<line1>,<line2>w !gh gist create '.b:gist_args.' <args> 2> /dev/null' |
2222
\ unlet b:gist_filename b:gist_args

0 commit comments

Comments
 (0)