私が見つけたすべてのエンコーディング関連の質問は、ファイルを再コード化する方法に関するものです。
ただし、私のものはまったく逆のものです.vimがファイルをまったく再コードしないようにすることは可能ですか? (もしそうなら、どのように?)
[converted]
ステータスラインに書いていることもあるし、いつも見逃す。ただし、編集したファイルと同じエンコーディングに端末を設定しているため、再コーディングはまったく必要ありません。
私が見つけたすべてのエンコーディング関連の質問は、ファイルを再コード化する方法に関するものです。
ただし、私のものはまったく逆のものです.vimがファイルをまったく再コードしないようにすることは可能ですか? (もしそうなら、どのように?)
[converted]
ステータスラインに書いていることもあるし、いつも見逃す。ただし、編集したファイルと同じエンコーディングに端末を設定しているため、再コーディングはまったく必要ありません。
使用する
vim -b "myfile.type"
バイナリモードで編集します。設定することもできます
:set binary
またはあなたが私のように怠け者なら
:se bin
vim でファイルを編集する前 (現在のバッファに適用)
:he `binary`
*'binary'* *'bin'* *'nobinary'* *'nobin'*
'binary' 'bin' boolean (default off)
local to buffer
{not in Vi}
This option should be set before editing a binary file. You can also
use the |-b| Vim argument. When this option is switched on a few
options will be changed (also when it already was on):
'textwidth' will be set to 0
'wrapmargin' will be set to 0
'modeline' will be off
'expandtab' will be off
Also, 'fileformat' and 'fileformats' options will not be used, the
file is read and written like 'fileformat' was "unix" (a single <NL>
separates lines).
The 'fileencoding' and 'fileencodings' options will not be used, the
file is read without conversion.
バイナリ ファイルを編集している場合は、sehe の提案が必要ですbinary
。
テキスト ファイルを編集している場合は、fileencodings
おそらくencoding
.