Fandom

Vim Tips Wiki

View NFO-files correctly

Redirected from VimTip1035

1,624pages on
this wiki
Add New Page
Talk0 Share
Tip 1035 Printable Monobook Previous Next

created November 1, 2005 · complexity basic · version 7.0


Most .NFO files use the otherwise uncommon file encoding of cp437. To view them correctly in Vim, the encoding has to be specified.

If you are already viewing the file, just type:

:e ++enc=cp437

That will reload the file forcing the encoding to cp437.

If you want all NFO files to open this way, you can add the following line to your .vimrc

autocmd BufReadPre *.nfo :setlocal fileencodings=cp437,utf-8

CommentsEdit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.