Skip to content

Instantly share code, notes, and snippets.

@gerrich
Last active December 14, 2015 23:59
Show Gist options
  • Save gerrich/5169404 to your computer and use it in GitHub Desktop.
Save gerrich/5169404 to your computer and use it in GitHub Desktop.
Use vim as lister for something not in system encoding
$ locale
LANG=en_US.UTF-8
$ cat file_in_cp1251 | vim --cmd ':set enc=cp1251' --cmd ':set tenc=utf8' -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment