Add Snippet

This commit is contained in:
Yannick Reiß 2023-08-04 17:06:44 +02:00
parent f5e849d9d5
commit 7e6edf6e73
No known key found for this signature in database
GPG Key ID: 5A3AF456F0A0338C
2 changed files with 8 additions and 4 deletions

View File

@ -15,3 +15,7 @@ snippet dd "Date and Time" i
`date` `date`
endsnippet endsnippet
snippet credhsrm "Credentials HSRM" b
Yannick Reiß (yreis001) <yannick.reiss@student.hs-rm.de>
endsnippet

View File

@ -13,7 +13,7 @@ if &shortmess =~ 'A'
else else
set shortmess=aoO set shortmess=aoO
endif endif
badd +17 UltiSnips/all.snippets badd +19 UltiSnips/all.snippets
argglobal argglobal
%argdel %argdel
$argadd UltiSnips/all.snippets $argadd UltiSnips/all.snippets
@ -27,12 +27,12 @@ setlocal fdl=99
setlocal fml=1 setlocal fml=1
setlocal fdn=20 setlocal fdn=20
setlocal nofen setlocal nofen
let s:l = 17 - ((16 * winheight(0) + 25) / 50) let s:l = 19 - ((18 * winheight(0) + 25) / 50)
if s:l < 1 | let s:l = 1 | endif if s:l < 1 | let s:l = 1 | endif
keepjumps exe s:l keepjumps exe s:l
normal! zt normal! zt
keepjumps 17 keepjumps 19
normal! 0 normal! 056|
tabnext 1 tabnext 1
if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0 && getbufvar(s:wipebuf, '&buftype') isnot# 'terminal' if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0 && getbufvar(s:wipebuf, '&buftype') isnot# 'terminal'
silent exe 'bwipe ' . s:wipebuf silent exe 'bwipe ' . s:wipebuf