Compare commits

..

6 Commits

5 changed files with 40 additions and 6 deletions

View File

@ -52,8 +52,8 @@ au BufEnter *.c,*.cpp,*.h,*.hpp packadd termdebug
tnoremap <silent> <esc> <c-\><c-n><c-\><c-n>
nnoremap <silent> <f3> :Termdebug a.out<cr>
nnoremap <silent> <f4> :!g++ -g %:p<cr>
nnoremap <silent> <f3> :execute "Termdebug" $HOME .. "/.cache/termdebug.out"<cr>
nnoremap <silent> <f4> :!g++ -g %:p -o ~/.cache/termdebug.out<cr>
nnoremap <silent> <f5> :Run<cr>
nnoremap <silent> <f6> :Stop<cr>
nnoremap <silent> <f8> :Clear<cr>
@ -96,6 +96,9 @@ let g:vimtex_compiler_latexmk = {
\ ],
\}
" spellcheck
au BufEnter *.tex set spell spelllang=en_ca
" Autowrite in tex files
" au TextChanged,TextChangedI *.tex silent write

View File

@ -91,6 +91,10 @@ snippet cent "center env" bi
\end{center}
endsnippet
snippet chap "chapter" bi
\chapter{$1}
endsnippet
snippet sec "section" wi
\section{$1}
endsnippet
@ -235,6 +239,10 @@ $1
\end{lstlisting}
endsnippet
snippet `` "source code listing (inline)" wi
\lstinline{${1:${VISUAL}}}
endsnippet
snippet lstf "source code listing from file" bi
\lstinputlisting[]{src/`!p snip.rv = snip.basename`.cpp}
endsnippet
@ -358,14 +366,25 @@ snippet s_ "substack" i
\substack{$1}$0
endsnippet
snippet glos "glossary" bi
\newglossaryentry{$1}{
name=$1,
description={$2}
}
endsnippet
snippet pglos "print glossaries" bi
\printnoidxglossary
endsnippet
snippet root "tex root specification" bi
%!TEX root = ${1:master.tex}
$0
endsnippet
snippet master "template for notes" bi
\documentclass[fleqn, 12pt, a4paper]{article}
\documentclass[fleqn, 12pt, openany, a4paper]{article}
\input{$1../preamble.tex}
%\input{glossary.tex}
\title{$2}
\begin{document}
@ -375,3 +394,7 @@ snippet master "template for notes" bi
$0
\end{document}
endsnippet
snippet inp "input" bi
\input{$1}
endsnippet

View File

@ -15,7 +15,7 @@ ssh-add ~/.ssh/keys/lambda
if [ $ACTION = PUSH ]
then
rsync -avzP \
rsync --delete -avzP \
--chown=dogeystamp:sftpr \
--exclude=med/mus \
--exclude=med/gv \
@ -36,7 +36,7 @@ then
--exclude=.fls \
--exclude=.fdb_latexmk \
--exclude=.aux \
~/med ~/dox ~/.xonotic dogeystamp@lambda:/mnt/disk/uv/
~/med ~/dox ~/nt ~/.xonotic dogeystamp@lambda:/mnt/disk/uv/
fi
if [ $ACTION = RECV ]

View File

@ -0,0 +1,8 @@
#!/bin/sh
# Edit clipboard contents with $EDITOR
TMPFILE="$(mktemp)"
xsel -b > "$TMPFILE"
nvim "$TMPFILE"
cat "$TMPFILE" | xsel -ib

View File

@ -3,7 +3,7 @@
# Custom mpv settings
# passed to yt-dl
FORMAT=""
FORMAT="bestvideo[height<=?1080]+bestaudio/best"
mpv \
--ytdl-format="$FORMAT" \