vimtricks.wiki Concise Vim tricks, one at a time.

How do you set the file encoding in Vim?

Answer

set encoding=utf-8 fileencoding=utf-8

Explanation

Set encoding for internal representation and fileencoding for the file on disk. UTF-8 is recommended for modern development.

Next

How do I visually select a double-quoted string including the quotes themselves?