Last active
April 24, 2017 05:46
-
-
Save 1000k/201f68aba915bd14837df252710d68fe to your computer and use it in GitHub Desktop.
vim で ANSI color codes を除去する ref: http://qiita.com/1000k/items/6d4953d2dd52fdd86556
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:%s/<1b>\[[0-9;]*m//g | |
※ <1b> はそのまま入力するのではなく、 <Ctrl+v><ESC> で入力する Escape 制御文字です。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
command! DeleteAnsi %s/<1b>\[[0-9;]*m//g$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment