1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-22 03:21:30 +01:00

functions: remove debug statements in vimscratch

This commit is contained in:
bretello 2023-09-25 12:39:24 +02:00
parent 125a4e7aed
commit ee531d18cd

View File

@ -1,6 +1,5 @@
# open vim with a scratch window that can be discarded on exit. # open vim with a scratch window that can be discarded on exit.
vimscratch() { vimscratch() {
set -x
local args local args
# if running in a pipe, use stdin (-) as arg. # if running in a pipe, use stdin (-) as arg.
# -t checks if the given FD is a terminal # -t checks if the given FD is a terminal
@ -8,5 +7,4 @@ vimscratch() {
stdin_arg="-" stdin_arg="-"
fi fi
vim -c "set buftype=nofile" $@ $stdin_arg vim -c "set buftype=nofile" $@ $stdin_arg
set +x
} }