nvim: make paths less brittle

This commit is contained in:
dogeystamp 2023-09-30 12:01:23 -04:00
parent 7d07f16b1f
commit 43da58eba3
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
2 changed files with 3 additions and 3 deletions

View File

@ -1,9 +1,9 @@
# makefile for compiling individual files from vim
~/.cache/termdebug/bin/%: %.cpp
mkdir -p ~/.cache/termdebug/bin/
@mkdir -p $(@D)
$(LINK.cpp) -g -Wall -Wpedantic -std=c++20 $^ $(LOADLIBES) $(LDLIBS) -o $@
~/.cache/termdebug/bin/%: %.c
mkdir -p ~/.cache/termdebug/bin/
@mkdir -p $(@D)
$(LINK.c) -g -Wall -Wpedantic $^ $(LOADLIBES) $(LDLIBS) -o $@

View File

@ -29,7 +29,7 @@ nnoremap <silent> <leader>de :call vimspector#Reset()<cr>
" write clipboard into input file
function WriteInput()
let inputfile=$HOME .. "/.cache/termdebug/input/" .. expand("%:r")
echo "Written input to '" .. inputfile .. "'."
echo "Input written to '" .. inputfile .. "'."
call writefile(getreg('+', 1, 1), inputfile)
endfunction
nnoremap <silent> <leader>rw :call WriteInput()<cr>