X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=blobdiff_plain;f=.vim%2Fftplugin%2Fxml.vim;fp=.vim%2Fftplugin%2Fxml.vim;h=a98560716dfd3f37ea480743a0abf0ba0357cc62;hp=9069c202b2d173bca11e80f367588e9713c34d50;hb=5f5dda45d35697bcc169ba8383e98ee9e5c3d8b3;hpb=cf25d2ea303b98cc319565cc4a1e80358bb08458 diff --git a/.vim/ftplugin/xml.vim b/.vim/ftplugin/xml.vim index 9069c20..a985607 100644 --- a/.vim/ftplugin/xml.vim +++ b/.vim/ftplugin/xml.vim @@ -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_xml_encoding.py " . shellescape(expand("%"))) if !v:shell_error - if strlen(encoding) == 0 + if empty(encoding) " By default XML files are in UTF-8 let encoding = "UTF-8" endif