dotfiles

My dotfiles, nothing really interesting to see ...
git clone https://git.onna.be/dotfiles.git
Log | Files | Refs | README

commit 0de0463fc464fed28141e3323e32f3fd762bab94
parent e861f5c29aa82f08bfc82ec194caf76985b21ac9
Author: Paco Esteban <paco@onna.be>
Date:   Fri, 26 Apr 2019 18:44:21 +0200

some snippets

72 chars separation line
iso date format in UTC
some fixes on markdown

Diffstat:
Mvim/.vim/UltiSnips/all.snippets | 11+++++++++++
Mvim/.vim/UltiSnips/markdown.snippets | 2+-
2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/vim/.vim/UltiSnips/all.snippets b/vim/.vim/UltiSnips/all.snippets @@ -46,6 +46,11 @@ snippet nbox "Nicer Box" $0 endsnippet +snippet line "separation line" +`!p snip.rv = '-' * 72` +$0 +endsnippet + snippet foldo "Insert a vim fold marker" b `!p snip.rv = get_comment_format()[0]` ${1:Fold description} `!p snip.rv = foldmarker()[0]`${2:1} `!p snip.rv = get_comment_format()[2]` endsnippet @@ -95,6 +100,12 @@ snippet diso "ISO format datetime" w `!v strftime("%F %H:%M:%S%z")` endsnippet +snippet dutc "ISO format datetime in UTC" w +`!p from datetime import datetime +snip.rv=datetime.utcnow().strftime("%F %H:%M:%S UTC") +` +endsnippet + snippet time "hh:mm" w `!v strftime("%H:%M")` endsnippet diff --git a/vim/.vim/UltiSnips/markdown.snippets b/vim/.vim/UltiSnips/markdown.snippets @@ -53,7 +53,7 @@ endsnippet snippet refl "Reference Link" [${1:${VISUAL:Text}}][${2:id}]$0 -[$2]:${3:http://www.url.com} "${4:$3}" +[$2]: ${3:http://www.url.com} "${4:$3}" endsnippet snippet fnt "Footnote"