% はバッファ全体に対して適用 s/~/~/g は、置換(g=同じ行に何個あってもすべて置き換え) ^M を入力するには、<c-v><c-m>を押します。 Register as a new user and use Qiita more conveniently You get articles that match your needsYou can efficiently read back useful informationYou can use dark themeWhat you can do with signing up