From: Samir Benmendil Date: Sat, 8 Aug 2020 12:14:10 +0000 (+0100) Subject: vim: some simple orgmode snippets and options X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/fce256bfa8ca52897963cb38f1d81abb1a649362?ds=sidebyside vim: some simple orgmode snippets and options --- diff --git a/vim/ftplugin/org.vim b/vim/ftplugin/org.vim new file mode 100644 index 0000000..0d870b1 --- /dev/null +++ b/vim/ftplugin/org.vim @@ -0,0 +1,2 @@ +setlocal textwidth=80 +setlocal formatoptions+=aw diff --git a/vim/ultisnips/org.snippets b/vim/ultisnips/org.snippets new file mode 100644 index 0000000..460b609 --- /dev/null +++ b/vim/ultisnips/org.snippets @@ -0,0 +1,15 @@ +snippet datetime "YYYY-MM-DD Day hh:mm" w +`!v strftime("%Y-%m-%d %a %H:%M")` +endsnippet + +snippet ex "#+BEGIN_EXAMPLE" b +#+BEGIN_EXAMPLE +${0:${VISUAL}} +#+END_EXAMPLE +endsnippet + +snippet src "#+BEGIN_SRC" b +#+BEGIN_SRC ${1:lang} +${0:${VISUAL}} +#+END_SRC +endsnippet