Change file encoding in Vim
This is for my own reference, I always forget how to do this..
Once
:w[rite] ++enc=utf-8 [filename]
Persistently
:set fileencoding=utf-8
Next steps
Here are a few things you can do:
- Reply to this post by email – I’d love to hear from you.
- Browse all writing
- Subscribe via RSS or email to stay in the loop.
- Reach out on Mastodon – I’m always happy to chat.