diff --git a/src/.config/nvim/makefile b/src/.config/nvim/makefile index 8c93fbd..2c5fa38 100644 --- a/src/.config/nvim/makefile +++ b/src/.config/nvim/makefile @@ -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 $@ diff --git a/src/.config/nvim/vimspector.vim b/src/.config/nvim/vimspector.vim index dc25c5c..439fff6 100644 --- a/src/.config/nvim/vimspector.vim +++ b/src/.config/nvim/vimspector.vim @@ -29,7 +29,7 @@ nnoremap de :call vimspector#Reset() " 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 rw :call WriteInput()