This commit is contained in:
Yannick Reiß 2023-11-03 10:26:36 +01:00
parent 5f91641217
commit 9093393f74
No known key found for this signature in database
GPG Key ID: 5A3AF456F0A0338C
7 changed files with 43 additions and 5 deletions

View File

@ -1,3 +1,7 @@
snippet hello "Hello World"
Hallo
endsnippet
snippet for "For-loop head" snippet for "For-loop head"
for (${1:int i} = ${2:0}; ${3:i}; ${4:--i}) { for (${1:int i} = ${2:0}; ${3:i}; ${4:--i}) {
$5 $5

View File

@ -386,9 +386,11 @@ snippet timenow "The current time"
endsnippet endsnippet
snippet texmeta "Meta with stamp for better documentation" snippet texmeta "Meta with stamp for better documentation"
% ${1:Name} `!p import random as ran % ${1:Name}`!p
if not snip.c: if t[1] == "":
snip.rv = t[1][0] + str(ran.randint(10, 100))`: ${2:Content} on `date` by ${3:`echo $USER`} t[1] = "?"
else:
t[1] = t[1].replace("?", "")` `!p snip.rv = t[1][0] ``!v line('.')`: ${2:Content} on `date` by ${3:`echo $USER`}
$0 $0
endsnippet endsnippet
@ -542,7 +544,7 @@ snippet != "not equal" iA
endsnippet endsnippet
snippet "@(\w)" "insert greek letter" irA snippet "@(\w)" "insert greek letter" irA
\\`!p letters = {'a': 'alpha', 'A': 'Alpha', 'b': 'beta', 'B': 'Beta', 'g': 'gamma', 'G': 'Gamma', 'e': 'epsilon', 'E': 'Epsilon', 'o': 'omega', 'O': 'Omega', 'm': 'mu', 'M': 'Mu', 'n': 'eta', 'd': 'delta', 'D': 'Delta', 'N': 'Eta', 'v': 'varphi', 'V': 'Varphi', 'P': 'partial', 'p': 'pi', 'r': 'rho'} \\`!p letters = {'a': 'alpha', 'A': 'Alpha', 'b': 'beta', 'B': 'Beta', 'g': 'gamma', 'G': 'Gamma', 'e': 'epsilon', 'E': 'Epsilon', 'o': 'omega', 'O': 'Omega', 'm': 'mu', 'M': 'Mu', 'n': 'eta', 'd': 'delta', 'D': 'Delta', 'N': 'Eta', 'v': 'varphi', 'V': 'Varphi', 'P': 'partial', 'p': 'pi', 'r': 'rho', 'S': 'Sigma', 's': 'sigma'}
try: try:
snip.rv = letters[ match.group(1) ] snip.rv = letters[ match.group(1) ]
except KeyError: except KeyError:

View File

@ -228,3 +228,17 @@ different
Add Add
N50 N50
IEEEtran IEEEtran
Aufspürbarkeit
zielspezifische
Microchips
syswrite
bsp
system
operating
PCB
Threads
Trusted
Scheduling
Print
ISC
Sewobe

Binary file not shown.

View File

@ -56,3 +56,21 @@ Qualcolm
0 0
Knowledge Knowledge
Knowledge Knowledge
trojans
C3
g
Fabio
Stöttinger
backend
PDK
Sky130
cryptographic
#anpulation
manpulation/!
hdl
tokenizer
testToken
testBrackets
CCompiler
Tokenize
tokenize

Binary file not shown.

View File

@ -99,5 +99,5 @@ function! Build()
endfunction endfunction
nnoremap <C-b> :call Build()<CR> nnoremap <C-b> :call Build()<CR>
nnoremap <C-w> :bdelete<CR> nnoremap <M-w> :bdelete<CR>
nnoremap <C-y> :b#<CR> nnoremap <C-y> :b#<CR>