aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-04 22:43:53 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-04 22:43:53 +1200
commit200b5154a919ecab27154e58989d23fc237f1018 (patch)
treeed3ff4cbbd4535e39a457613e50d02df659d89b3 /vim
parentMove Markdown and PHP ftplugins from after dir (diff)
downloaddotfiles-200b5154a919ecab27154e58989d23fc237f1018.tar.gz
dotfiles-200b5154a919ecab27154e58989d23fc237f1018.zip
Use correct function for function existence check
Diffstat (limited to 'vim')
-rw-r--r--vim/ftplugin/markdown/autoformat.vim6
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'