s3rvac / autofenc Goto Github PK
View Code? Open in Web Editor NEWA Vim plugin to automatically detect and set file encoding when opening a file.
License: GNU General Public License v2.0
A Vim plugin to automatically detect and set file encoding when opening a file.
License: GNU General Public License v2.0
On Windows if shell is set to bash (e.g., when using Cygwin), the custom nobbling of shellslash in s:SafeShellEscape actually breaks things, and you get E484 errors trying to use the temp file.
I've patched mine to not perform the nobble if shell is set to a shell-like filename:
if ( has("win32") || has("win64") ) && &shell !~? "sh$"
You could arguably do the opposite check against cmd.
I've got a utf-16 xml file that doesn't have a BOM. It looks like AutoFenc can't recognise this - the search for the <?xml version="1.0" encoding="utf-16"
snippet always fails. Can vim search for this text in a utf-16 file that's being displayed as utf-8?
That would be great if it printed such a message.
Comment regexp does not work correctly for comments in Windows Batch files (file extensions .bat
and .cmd
). Comments starts with keyword rem
. If keyword rem
starts at beginning of line, the regexp does not work. If I add a space in front of it, it works as expected, but looks ugly.
The comment regexp is too complicated for me, so I am not able to parse it my self, so I am sorry for not providing you with pull request.
This does not work:
rem vim: fileencoding=cp852
This works:
rem vim: fileencoding=cp852
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.