]> git.rmz.io Git - dotfiles.git/commitdiff
vim: some simple orgmode snippets and options
authorSamir Benmendil <me@rmz.io>
Sat, 8 Aug 2020 12:14:10 +0000 (13:14 +0100)
committerSamir Benmendil <me@rmz.io>
Sat, 8 Aug 2020 12:14:10 +0000 (13:14 +0100)
vim/ftplugin/org.vim [new file with mode: 0644]
vim/ultisnips/org.snippets [new file with mode: 0644]

diff --git a/vim/ftplugin/org.vim b/vim/ftplugin/org.vim
new file mode 100644 (file)
index 0000000..0d870b1
--- /dev/null
@@ -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 (file)
index 0000000..460b609
--- /dev/null
@@ -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