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
|
# makefile for compiling individual files from vim
|
||||||
|
|
||||||
~/.cache/termdebug/bin/%: %.cpp
|
~/.cache/termdebug/bin/%: %.cpp
|
||||||
mkdir -p ~/.cache/termdebug/bin/
|
@mkdir -p $(@D)
|
||||||
$(LINK.cpp) -g -Wall -Wpedantic -std=c++20 $^ $(LOADLIBES) $(LDLIBS) -o $@
|
$(LINK.cpp) -g -Wall -Wpedantic -std=c++20 $^ $(LOADLIBES) $(LDLIBS) -o $@
|
||||||
|
|
||||||
~/.cache/termdebug/bin/%: %.c
|
~/.cache/termdebug/bin/%: %.c
|
||||||
mkdir -p ~/.cache/termdebug/bin/
|
@mkdir -p $(@D)
|
||||||
$(LINK.c) -g -Wall -Wpedantic $^ $(LOADLIBES) $(LDLIBS) -o $@
|
$(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
|
" write clipboard into input file
|
||||||
function WriteInput()
|
function WriteInput()
|
||||||
let inputfile=$HOME .. "/.cache/termdebug/input/" .. expand("%:r")
|
let inputfile=$HOME .. "/.cache/termdebug/input/" .. expand("%:r")
|
||||||
echo "Written input to '" .. inputfile .. "'."
|
echo "Input written to '" .. inputfile .. "'."
|
||||||
call writefile(getreg('+', 1, 1), inputfile)
|
call writefile(getreg('+', 1, 1), inputfile)
|
||||||
endfunction
|
endfunction
|
||||||
nnoremap <silent> <leader>rw :call WriteInput()<cr>
|
nnoremap <silent> <leader>rw :call WriteInput()<cr>
|
||||||
|
Loading…
Reference in New Issue
Block a user