From the doc:
:write ++enc=utf-8 russian.txt
So you should be able to change the encoding as part of the write command.
More Related Contents:
- vim remove non existing mapping [closed]
- Vim: apply settings on files in directory
- What’s a quick way to comment/uncomment lines in Vim?
- Indent multiple lines quickly in vi
- How to copy to clipboard in Vim?
- In Vim is there a way to delete without putting text in the register?
- Can I map Alt key in Vim?
- Make Vim show ALL white spaces as a character
- How to get visually selected text in VimScript
- How to map Shift-Enter
- How to create an alias for a command in Vim?
- What is in your .vimrc? [closed]
- Copy all the lines to clipboard
- Can vim monitor realtime changes to a file
- How do I make Vim do normal (Bash-like) tab completion for file names?
- How to prevent vim from creating (and leaving) temporary files?
- vim, switching between files rapidly using vanilla Vim (no plugins)
- Working with huge files in VIM
- Smart Wrap in Vim
- How to redirect ex command output into current buffer or file?
- Is it possible to display indentation guides in Vim?
- How do I fix the indentation of an entire file in Vi?
- Multiple commands on same line
- How can you automatically remove trailing whitespace in vim
- Vim – how to run a command immediately when starting vim?
- How to map Ctrl+A and Ctrl+Shift+A differently?
- Get rid of Vim’s highlight after searching text
- Why would Vim add a new line at the end of a file?
- Does Vim load plugins after loading vimrc?
- Paste in insert mode?