Vim Part16
■ このスレッドは過去ログ倉庫に格納されています
0735724
2009/09/15(火) 20:58:03\nを置換の右側に書いたときはNULを表すのか。
vimの内部での改行の扱い上の都合があるようですね。
:help NL-used-for-Nul
sedでも右側に\nは書けないんだね。
The escape sequence \n matches a newline character embedded in the pattern space. You cannot, however, use a literal newline character in an address or in the substitute command.(man sed)
>>734
^MがLFともCRだと思ってなかった。疑問も持たずに、
ただ改行のときはこれ使うみたいな。
■ このスレッドは過去ログ倉庫に格納されています