aboutsummaryrefslogtreecommitdiff
path: root/.vim/after
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-01-17 19:21:59 +0300
committerYaroslav <contact@yaroslavps.com>2020-01-17 19:21:59 +0300
commit69d47128244a06ee28e4b43191ef9216b04bce13 (patch)
treed3b4998c2efde34d390f2473184c719505794b9c /.vim/after
parentfdbe40acd8b7582bf0771bdd1b8baf9c785c1abe (diff)
downloadvimrice-69d47128244a06ee28e4b43191ef9216b04bce13.tar.gz
vimrice-69d47128244a06ee28e4b43191ef9216b04bce13.zip
syntax highlighting for toml docs
Diffstat (limited to '.vim/after')
-rw-r--r--.vim/after/ftplugin/toml.vim21
1 files changed, 21 insertions, 0 deletions
diff --git a/.vim/after/ftplugin/toml.vim b/.vim/after/ftplugin/toml.vim
new file mode 100644
index 0000000..9075e88
--- /dev/null
+++ b/.vim/after/ftplugin/toml.vim
@@ -0,0 +1,21 @@
+" File: ftplugin/toml.vim
+" Author: Kevin Ballard <kevin@sb.org>
+" Description: FileType Plugin for Toml
+" Last Change: Feb 12, 2019
+
+if exists('b:did_ftplugin')
+ finish
+endif
+let b:did_ftplugin = 1
+
+let s:save_cpo = &cpo
+set cpo&vim
+let b:undo_ftplugin = 'setlocal commentstring< comments<'
+
+setlocal commentstring=#\ %s
+setlocal comments=:#
+
+let &cpo = s:save_cpo
+unlet s:save_cpo
+
+" vim: set et sw=4 ts=4: