diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-04 22:43:53 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-04 22:43:53 +1200 |
commit | 200b5154a919ecab27154e58989d23fc237f1018 (patch) | |
tree | ed3ff4cbbd4535e39a457613e50d02df659d89b3 /vim/ftplugin | |
parent | Move Markdown and PHP ftplugins from after dir (diff) | |
download | dotfiles-200b5154a919ecab27154e58989d23fc237f1018.tar.gz dotfiles-200b5154a919ecab27154e58989d23fc237f1018.zip |
Use correct function for function existence check
Diffstat (limited to 'vim/ftplugin')
-rw-r--r-- | vim/ftplugin/markdown/autoformat.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/ftplugin/markdown/autoformat.vim b/vim/ftplugin/markdown/autoformat.vim index 3f620691..80bd034c 100644 --- a/vim/ftplugin/markdown/autoformat.vim +++ b/vim/ftplugin/markdown/autoformat.vim @@ -18,7 +18,7 @@ endif " * Longer than 'textwidth' " * Contains at least one space (not an unsplittable line) " * Not a code block (indented with at least four spaces) -if !has('*s:Load') +if !exists('*s:Load') function! s:Load() abort let l:width = &textwidth ? &textwidth : 79 let l:count = 0 @@ -41,7 +41,7 @@ endif call s:Load() " Suspend auto-formatting when in a code block (four-space indent) -if !has('*s:Line') +if !exists('*s:Line') function! s:Line() abort if getline('.') =~# '\m^ ' if &formatoptions =~# '\ma' @@ -62,7 +62,7 @@ augroup ftplugin_markdown_autoformat augroup END " Suspend auto-format when pasting anything with a linebreak -if !has('*s:Put') +if !exists('*s:Put') function! s:Put(above) abort let l:suspended = 0 if &formatoptions =~# '\ma' && getreg() =~# '\m\n' |