nvim: make paths less brittle
This commit is contained in:
parent
7d07f16b1f
commit
43da58eba3
@ -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 $@
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user