function! W()
" let encodings=filter(split(&fileencodings, ','), 'v:val != "ucs-bom"')
let encodings = ['us-ascii']
- if $LC_CTYPE == 'ru_RU.UTF-8'
+ if $LC_CTYPE =~ 'UTF-8' " UTF-8 or en_US.UTF-8 or ru_RU.UTF-8 or such
let encodings += ['utf-8']
elseif $LC_CTYPE == 'ru_RU.KOI8-R'
let encodings += ['koi8-r', 'utf-8']