Compare commits
6 Commits
024565d0c2
...
db1c355282
Author | SHA1 | Date | |
---|---|---|---|
db1c355282 | |||
431c7dcdd8 | |||
f904f8a9cf | |||
1b60f3c0e5 | |||
57bbb897dd | |||
361620f70c |
@ -52,8 +52,8 @@ au BufEnter *.c,*.cpp,*.h,*.hpp packadd termdebug
|
|||||||
|
|
||||||
tnoremap <silent> <esc> <c-\><c-n><c-\><c-n>
|
tnoremap <silent> <esc> <c-\><c-n><c-\><c-n>
|
||||||
|
|
||||||
nnoremap <silent> <f3> :Termdebug a.out<cr>
|
nnoremap <silent> <f3> :execute "Termdebug" $HOME .. "/.cache/termdebug.out"<cr>
|
||||||
nnoremap <silent> <f4> :!g++ -g %:p<cr>
|
nnoremap <silent> <f4> :!g++ -g %:p -o ~/.cache/termdebug.out<cr>
|
||||||
nnoremap <silent> <f5> :Run<cr>
|
nnoremap <silent> <f5> :Run<cr>
|
||||||
nnoremap <silent> <f6> :Stop<cr>
|
nnoremap <silent> <f6> :Stop<cr>
|
||||||
nnoremap <silent> <f8> :Clear<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
|
" Autowrite in tex files
|
||||||
" au TextChanged,TextChangedI *.tex silent write
|
" au TextChanged,TextChangedI *.tex silent write
|
||||||
|
|
||||||
|
@ -91,6 +91,10 @@ snippet cent "center env" bi
|
|||||||
\end{center}
|
\end{center}
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
snippet chap "chapter" bi
|
||||||
|
\chapter{$1}
|
||||||
|
endsnippet
|
||||||
|
|
||||||
snippet sec "section" wi
|
snippet sec "section" wi
|
||||||
\section{$1}
|
\section{$1}
|
||||||
endsnippet
|
endsnippet
|
||||||
@ -235,6 +239,10 @@ $1
|
|||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
snippet `` "source code listing (inline)" wi
|
||||||
|
\lstinline{${1:${VISUAL}}}
|
||||||
|
endsnippet
|
||||||
|
|
||||||
snippet lstf "source code listing from file" bi
|
snippet lstf "source code listing from file" bi
|
||||||
\lstinputlisting[]{src/`!p snip.rv = snip.basename`.cpp}
|
\lstinputlisting[]{src/`!p snip.rv = snip.basename`.cpp}
|
||||||
endsnippet
|
endsnippet
|
||||||
@ -358,14 +366,25 @@ snippet s_ "substack" i
|
|||||||
\substack{$1}$0
|
\substack{$1}$0
|
||||||
endsnippet
|
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
|
snippet root "tex root specification" bi
|
||||||
%!TEX root = ${1:master.tex}
|
%!TEX root = ${1:master.tex}
|
||||||
$0
|
$0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet master "template for notes" bi
|
snippet master "template for notes" bi
|
||||||
\documentclass[fleqn, 12pt, a4paper]{article}
|
\documentclass[fleqn, 12pt, openany, a4paper]{article}
|
||||||
\input{$1../preamble.tex}
|
\input{$1../preamble.tex}
|
||||||
|
%\input{glossary.tex}
|
||||||
\title{$2}
|
\title{$2}
|
||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
@ -375,3 +394,7 @@ snippet master "template for notes" bi
|
|||||||
$0
|
$0
|
||||||
\end{document}
|
\end{document}
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
snippet inp "input" bi
|
||||||
|
\input{$1}
|
||||||
|
endsnippet
|
||||||
|
@ -15,7 +15,7 @@ ssh-add ~/.ssh/keys/lambda
|
|||||||
|
|
||||||
if [ $ACTION = PUSH ]
|
if [ $ACTION = PUSH ]
|
||||||
then
|
then
|
||||||
rsync -avzP \
|
rsync --delete -avzP \
|
||||||
--chown=dogeystamp:sftpr \
|
--chown=dogeystamp:sftpr \
|
||||||
--exclude=med/mus \
|
--exclude=med/mus \
|
||||||
--exclude=med/gv \
|
--exclude=med/gv \
|
||||||
@ -36,7 +36,7 @@ then
|
|||||||
--exclude=.fls \
|
--exclude=.fls \
|
||||||
--exclude=.fdb_latexmk \
|
--exclude=.fdb_latexmk \
|
||||||
--exclude=.aux \
|
--exclude=.aux \
|
||||||
~/med ~/dox ~/.xonotic dogeystamp@lambda:/mnt/disk/uv/
|
~/med ~/dox ~/nt ~/.xonotic dogeystamp@lambda:/mnt/disk/uv/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $ACTION = RECV ]
|
if [ $ACTION = RECV ]
|
||||||
|
8
src/.local/bin/deskutils/clipedit.sh
Executable file
8
src/.local/bin/deskutils/clipedit.sh
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Edit clipboard contents with $EDITOR
|
||||||
|
|
||||||
|
TMPFILE="$(mktemp)"
|
||||||
|
|
||||||
|
xsel -b > "$TMPFILE"
|
||||||
|
nvim "$TMPFILE"
|
||||||
|
cat "$TMPFILE" | xsel -ib
|
@ -3,7 +3,7 @@
|
|||||||
# Custom mpv settings
|
# Custom mpv settings
|
||||||
|
|
||||||
# passed to yt-dl
|
# passed to yt-dl
|
||||||
FORMAT=""
|
FORMAT="bestvideo[height<=?1080]+bestaudio/best"
|
||||||
|
|
||||||
mpv \
|
mpv \
|
||||||
--ytdl-format="$FORMAT" \
|
--ytdl-format="$FORMAT" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user