]> git.phdru.name Git - dotfiles.git/blobdiff - .vim/ftplugin/html.vim
.vimrc: Use `empty()` instead of `len`/`strlen`
[dotfiles.git] / .vim / ftplugin / html.vim
index 3950834895045b71d324e60d1f897f3bb91a503a..5549c67560abfd25afbf88aef71f08f02bf91f4a 100644 (file)
@@ -6,7 +6,7 @@ if version >= 702 && has("iconv") && !exists('b:encoding_set')
    " Try to recognize the file encoding and convert the file
    let encoding = system("get_html_encoding.py " . shellescape(expand("%")))
    if !v:shell_error
-      if strlen(encoding) != 0
+      if !empty(encoding)
          call SetupEncoding(encoding)
       endif
    endif