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
← Previous
Basic server setup (Ubuntu)
Now what?
I’m genuinely thrilled that you’ve made it this far — thank you for reading!
If you’re up for more, here are a few things you can do:
- Reply to this post by email – I’d love to hear from you.
- Subscribe via RSS or email to stay in the loop.
- Reach out on Mastodon – I’m always happy to chat.