diff --git a/src/.config/nvim/init.vim b/src/.config/nvim/init.vim index 516834b..ba5b59b 100755 --- a/src/.config/nvim/init.vim +++ b/src/.config/nvim/init.vim @@ -23,7 +23,9 @@ set lazyredraw nocursorline ttyfast set clipboard=unnamedplus " when using c or s, do not overwrite clipboard nnoremap c "-c +vnoremap c "-c nnoremap s "-s +vnoremap s "-s let mapleader = "," diff --git a/src/.config/nvim/makefile b/src/.config/nvim/makefile index 2c7f4ca..8c93fbd 100644 --- a/src/.config/nvim/makefile +++ b/src/.config/nvim/makefile @@ -2,7 +2,7 @@ ~/.cache/termdebug/bin/%: %.cpp mkdir -p ~/.cache/termdebug/bin/ - $(LINK.cpp) -g -Wall -Wpedantic $^ $(LOADLIBES) $(LDLIBS) -o $@ + $(LINK.cpp) -g -Wall -Wpedantic -std=c++20 $^ $(LOADLIBES) $(LDLIBS) -o $@ ~/.cache/termdebug/bin/%: %.c mkdir -p ~/.cache/termdebug/bin/ diff --git a/src/.config/nvim/ultisnips/typst.snippets b/src/.config/nvim/ultisnips/typst.snippets index 646c8ec..b17dd30 100644 --- a/src/.config/nvim/ultisnips/typst.snippets +++ b/src/.config/nvim/ultisnips/typst.snippets @@ -8,6 +8,15 @@ snippet problem "template for problem notes" bi endsnippet +snippet contest "template for contest problems" bi +#import "../../templates/contest.typ": template, source_code, status +#show: template.with( + title: "$1", + stat: "${2:incomplete}", +) + +endsnippet + snippet algs "template for compsci notes" bi #import "../templates/algs.typ": template, source_code #show: template.with(