This commit is contained in:
Yannick Reiß 2023-08-14 21:39:34 +02:00
parent 49e5c40b5a
commit c2fcba1d77
No known key found for this signature in database
GPG Key ID: 5A3AF456F0A0338C
2 changed files with 15 additions and 13 deletions

View File

@ -1,12 +1,13 @@
snippet cred "My private Credentials"
snippet cred "My private Credentials"
Yannick Reiss <yannick.reiss@protonmail.ch>
endsnippet
snippet solve "Solve a python equation"
snippet solve "Solve a python equation"
${1:1*1}`!p rv = ""
from math import *
try:
rv = eval(t[1])
except SyntaxError:
except:
rv = "?"
snip.rv = f" = {rv}"`
endsnippet
@ -15,7 +16,6 @@ snippet dd "Date and Time" i
`date`
endsnippet
snippet credhsrm "Credentials HSRM" b
snippet credhsrm "Credentials HSRM"
Yannick Reiß (yreis001) <yannick.reiss@student.hs-rm.de>
endsnippet

View File

@ -3,7 +3,7 @@ let s:so_save = &g:so | let s:siso_save = &g:siso | setg so=0 siso=0 | setl so=-
let v:this_session=expand("<sfile>:p")
silent only
silent tabonly
cd ~/.config/nvim
cd ~/Documents/HSRM/Semester4/EmbSec/Praktikum/it-security/Docs
if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
let s:wipebuf = bufnr('%')
endif
@ -13,12 +13,15 @@ if &shortmess =~ 'A'
else
set shortmess=aoO
endif
badd +163 init.lua
badd +132 Documentation.tex
badd +109 ~/.config/nvim/UltiSnips/tex.snippets
badd +7 ~/.config/nvim/UltiSnips/all.snippets
argglobal
%argdel
$argadd init.lua
edit init.lua
$argadd Documentation.tex
edit Documentation.tex
argglobal
balt ~/.config/nvim/UltiSnips/all.snippets
setlocal fdm=expr
setlocal fde=nvim_treesitter#foldexpr()
setlocal fmr={{{,}}}
@ -27,12 +30,12 @@ setlocal fdl=0
setlocal fml=1
setlocal fdn=20
setlocal nofen
let s:l = 163 - ((63 * winheight(0) + 32) / 64)
let s:l = 132 - ((27 * winheight(0) + 19) / 38)
if s:l < 1 | let s:l = 1 | endif
keepjumps exe s:l
normal! zt
keepjumps 163
normal! 0
keepjumps 132
normal! 014|
tabnext 1
if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0 && getbufvar(s:wipebuf, '&buftype') isnot# 'terminal'
silent exe 'bwipe ' . s:wipebuf
@ -46,7 +49,6 @@ if filereadable(s:sx)
endif
let &g:so = s:so_save | let &g:siso = s:siso_save
set hlsearch
nohlsearch
doautoall SessionLoadPost
unlet SessionLoad
" vim: set ft=vim :