diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-11 11:35:39 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-11 11:35:39 +1200 |
commit | d000843e89f0d7f99a8442dff1c030835c73f065 (patch) | |
tree | 26f6e7d26e33e08fc4997e826ea5c59a2d570b19 | |
parent | Merge branch 'release/v4.23.0' (diff) | |
parent | Bump VERSION (diff) | |
download | dotfiles-d000843e89f0d7f99a8442dff1c030835c73f065.tar.gz dotfiles-d000843e89f0d7f99a8442dff1c030835c73f065.zip |
Merge branch 'release/v4.24.0'v4.24.0
* release/v4.24.0:
Bump VERSION
Replace text.vim ftplugin entirely
-rw-r--r-- | VERSION | 4 | ||||
-rw-r--r-- | vim/after/ftplugin/text.vim | 5 | ||||
-rw-r--r-- | vim/ftplugin/text.vim | 13 |
3 files changed, 10 insertions, 12 deletions
@@ -1,2 +1,2 @@ -tejr dotfiles v4.23.0 -Fri May 10 23:22:34 UTC 2019 +tejr dotfiles v4.24.0 +Fri May 10 23:35:38 UTC 2019 diff --git a/vim/after/ftplugin/text.vim b/vim/after/ftplugin/text.vim deleted file mode 100644 index cda2891c..00000000 --- a/vim/after/ftplugin/text.vim +++ /dev/null @@ -1,5 +0,0 @@ -" Spellcheck documents we're actually editing (not just viewing) -if has('spell') && &modifiable && !&readonly - setlocal spell - let b:undo_ftplugin .= '|setlocal spell<' -endif diff --git a/vim/ftplugin/text.vim b/vim/ftplugin/text.vim index a5dc810f..362dfb69 100644 --- a/vim/ftplugin/text.vim +++ b/vim/ftplugin/text.vim @@ -1,8 +1,5 @@ -" 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') +" Only do this when not yet done for this buffer +if exists('b:did_ftplugin') finish endif let b:did_ftplugin = 1 @@ -12,3 +9,9 @@ setlocal comments+=fb:- " Dashed lists setlocal comments+=fb:* " Bulleted lists setlocal comments+=n:> " Mail quotes let b:undo_ftplugin = 'setlocal comments<' + +" Spellcheck documents we're actually editing (not just viewing) +if has('spell') && &modifiable && !&readonly + setlocal spell + let b:undo_ftplugin .= '|setlocal spell<' +endif |