aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin/text.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-11 11:22:34 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-11 11:22:34 +1200
commitec6a73d71a512dc89aaeda9d395c65ce0c760fca (patch)
treeb274b9b97aa443736bd2ea659912c2cadfa488b9 /vim/ftplugin/text.vim
parentMerge branch 'release/v4.22.0' (diff)
parentBump VERSION (diff)
downloaddotfiles-ec6a73d71a512dc89aaeda9d395c65ce0c760fca.tar.gz
dotfiles-ec6a73d71a512dc89aaeda9d395c65ce0c760fca.zip
Merge branch 'release/v4.23.0'v4.23.0
* release/v4.23.0: Bump VERSION Set up custom ftplugin for plain text files Refactor colorscheme logic a little Remove Vim 'grepprg' setting
Diffstat (limited to 'vim/ftplugin/text.vim')
-rw-r--r--vim/ftplugin/text.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/vim/ftplugin/text.vim b/vim/ftplugin/text.vim
new file mode 100644
index 00000000..a5dc810f
--- /dev/null
+++ b/vim/ftplugin/text.vim
@@ -0,0 +1,14 @@
+" The 'text' filetype was only added in v7.4.365, so anything older than this
+" requires our own filetype plugin to prevent the b:undo_ftplugin extensions
+" in after/ftplugin/text.vim from panicking.
+if v:version > 704
+ \ || v:version == 703 && has('patch365')
+ finish
+endif
+let b:did_ftplugin = 1
+
+" Set comment metacharacters
+setlocal comments+=fb:- " Dashed lists
+setlocal comments+=fb:* " Bulleted lists
+setlocal comments+=n:> " Mail quotes
+let b:undo_ftplugin = 'setlocal comments<'