Commits on Mar 14, 2012
  1. Make HTML/XML/CSS filetypes configurable and add more defaults.

    Actually, the reason I've added quoted encoding names to the comment detection was that ActionScript MXML files weren't detected as an XML dialect. I'm adding filetypes that ship with Vim 7.3, and extract the hard-coded filetypes into g:autofenc_autodetect_..._filetypes config variables, so that users can customize them easily.
    committed Mar 14, 2012
  2. Do not emit "unrecognized charset" message when known encoding.

    I've started to enable g:autofenc_emit_messages, and was bothered by AutoFenc reporting "utf-8" as "unrecognized. Adding (the most common) encoding names supported by Vim and suppressing the message then.
    committed Mar 14, 2012
  3. Improve comment detection.

    - Demand whitespace when there's no [:=] delimiter to avoid detecting enc="s" in "encodings" comment.
    - Encoding name must be at least two characters long.
    - Support encoding name enclosed in quotes similar to XML-style.
    committed Mar 14, 2012
  4. Version 1.4

    committed Mar 14, 2012
Commits on Mar 9, 2012
  1. Improve detection regexp for comments.

    - Add "fileencoding" and "charset".
    - Demand that there is a whitespace in from of the keyword, so that "daycoding" doesn't match.
    committed Mar 9, 2012
Commits on Mar 8, 2012
  1. Keep changed CWD with 'autochdir' setting by temporarily disabling it.

    For example, I have a ":lcd .." in after/ftplugin/gitcommit.vim, so that I'm in the Git root directory, not the .git subdir when composing the commit message. The reload of the buffer by AutoFenc (via :edit) again triggered the automatic change of the working dir, and therefore my customization was lost.
    The 'autochdir' setting needs to be temporarily disabled to avoid that.
    committed Mar 8, 2012
  2. FIX: Support plain Vim 7.0 with former shellescape() emulation.

    Otherwise, there will be errors in Vim 7.0. Re-introducing the crude emulation from former AutoFenc versions is almost as simple as extending the include guard with a check for shellescape().
    committed Mar 6, 2012
  3. ENH: Introduce g:autofenc_enc_blacklist.

    For example, the enca tool has a tendency to detect plain text files as UTF-7. With the blacklist, AutoFenc can be instructed to ignore those encodings.
    Additionally, always do a case-insensitive ASCII check. Again, enca reports this in uppercase, so the condition fails unless ignorecase is set.
    committed Mar 6, 2012
Commits on Mar 7, 2012
  1. Version 1.3.4

    - Don't override when the user explicitly sets file encoding with ++enc (thanks to Benjamin Fritz).
    - Fixed TOhtml version detection (again) and made sure line continuations can actually be used (thanks to Benjamin Fritz and Ingo Karkat).
    - Disabled the option shellslash on Windows before calling shellescape() (it may cause problems on Windows, thanks for the tip goes to Benjamin Fritz).
    s3rvac committed with vim-scripts Feb 27, 2012
Commits on Dec 1, 2011
  1. Version 1.3.3

    Thanks to Ingo Karkat for the updates in this version.
    - Fixed a problem in the TOhtml detection when, for example, g:loaded_2html_plugin = 'vim7.3_v6'.
    - The return code of the call of an external program via system(ext_prog_cmd) is now checked. This prevents Vim interpreting an error message as an encoding.
    - shellescape() is now used instead of quoting file_path manually.
    s3rvac committed with vim-scripts Nov 29, 2011
  2. Version 1.3.2

    Thanks to Benjamin Fritz for the updates in this version.
    - Fixed the detection of the version of the TOhtml plugin.
    s3rvac committed with vim-scripts Nov 24, 2011
Commits on Jul 27, 2011
  1. Version 1.3.1

    Thanks to Benjamin Fritz for the updates in this version.
     - Fixed the plugin behavior when reloading a file with different settings.
    s3rvac committed with vim-scripts Jul 23, 2011
Commits on Apr 22, 2011
  1. Version 1.3

    Thanks to Benjamin Fritz for the updates in this version.
      - Added support for HTML version 5 encoding detection.
      - The script now dies gracefully in old Vims.
      - 'g:autofenc_autodetect_comment_num_of_lines' renamed to 'g:autofenc_autodetect_num_of_lines'
    s3rvac committed with vim-scripts Apr 22, 2011
Commits on Apr 14, 2011
  1. Version 1.2.1

    Fixed a typo in a variable name (this resulted in an error in some occasions). Thanks to Charles Lee for pointing this bug out.
    s3rvac committed with vim-scripts Apr 13, 2011
Commits on Apr 1, 2011
  1. Version 1.2

    Thanks to Benjamin Fritz for the updates in this version.
      - TOhtml's IANA name/Vim encoding conversion functions are now used.
      - Changed BOM detection so it does not duplicate a check Vim already did by default (i.e. default to off if ucs-bom is in the 'fileencodings').
      - Put autocmds in the AutoFenc augroup for easier handling.
      - Made autocmd nested so we don't need to worry about restoring everything that other autocmds may set (e.g. syntax).
      - Jumplist or cursor position during detection are not affected.
      - The g:autofenc_autodetect_comment_num_of_lines option is now used also in HTML/XML/CSS detection routines (previously only used for encoding specified in comments).
      - Improved HTML charset line regex.
      - Added an option (g:autofenc_emit_messages) to emit messages about the detected/used encoding upon opening a file.
    s3rvac committed with vim-scripts Mar 31, 2011
Commits on Oct 18, 2010
  1. Version 1.1

    Added three configuration possibilites to disable autodetection for specific files (based on file size, file type and file path). See script description for more info.
    s3rvac committed with vim-scripts Aug 16, 2009
  2. Version 1.0.2

    Fixed the XML encoding detection function and minor code and documentation fixes.
    s3rvac committed with vim-scripts Aug 11, 2009
  3. Version 1.0: Initial upload

    s3rvac committed with vim-scripts Jul 26, 2009