On 2019-10-03, 'Suresh Govindachar' via vim_use wrote:
> To view a file containing terminal color escape codes (file was
> created by redirecting the stdout and stderr into it), I tried the
> suggestions at https://vi.stackexchange.com/questions/485/can-vim-interpret-terminal-color-escape-codes
> -- but there was no difference compared to just opening the file and
> not doing any of the following:
>
> 1) Opening foo.txt and sourcing AnsiEscPlugin.vim
> 2) Opening foo.txt and sourcing ColorizerPlugin.vim
> 3) Starting vi and doing ":term less foo.txt"
>
> Ubuntu 16.04, VIM version: 8.1.229, Colorscheme: ChocolateLiquor
>
> So how can one view files with terminal color escape codes?
I don't know about 2 and 3, but after sourcing AnsiEscPlugin.vim,
you need to execute the :AnsiEsc command. You will also need to
have AnsiEsc.vim in your autoload directory. You may also need to
source, or just have in your plugin directory, the cecutil.vim
script. I get errors from the :AnsiEsc command if I don't also
source cecutil.vim.
Regards,
Gary
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20191003154307.GA25228%40phoenix.
No comments:
Post a Comment