Monday, June 24, 2013

Re: Vim 7.3 - Odd behaviour with Log file ESC sequences

John,


John Little <John.B.Little <at> gmail.com> writes:
> On Sunday, June 23, 2013 11:12:48 PM UTC+12, Philip Rhoades wrote:
>> People,
>>
>> Vim is displaying the same file differently and behaving differently
>> when the file is in different directories:
>>
>> In:
>>
>> rails_dir/rails_app/log/development.log
>>
>> Vim processes the ESC sequences as normal to give coloured text but
>> the command "1G" does not work - but if I copy the file with "cp -a ":
>>
>> rails_dir/development.log
>>
>> the ESC sequences show up like:
>>
>> Connecting to database specified by database.yml
>> ^[[1m^[[36m (0.1ms)^[[0m ^[[1mselect sqlite_version(*)^[[0m
>>
>> but the command "1G" works as expected. I have renamed .vimrc but the
>> odd behaviour persists - what I am missing?
>>
>> what I am missing?
>
>
> The output of
>
> :scriptnames
>
> can aid understanding in these situations. "normal" behaviour of vim
> is to display escape sequences like
> your second case, not the first; in that first case there must be a
> script, or commands in a .vimrc, causing
> the sequences to be interpreted; the one I know about is AnsiEsc.vim,
> http://www.vim.org/scripts/script.php?script_id=302.


The output of :scriptnames hereunder but I still don't understand - does
it mean that one of those scripts is recognising the directory that the
log file is in and causing Vim to change it's display of the log file?

Thanks,

Phil.

1: /etc/vimrc
2: /usr/share/vim/vim73/syntax/syntax.vim
3: /usr/share/vim/vim73/syntax/synload.vim
4: /usr/share/vim/vim73/syntax/syncolor.vim
5: /usr/share/vim/vim73/filetype.vim
6: ~/.vim/ftdetect/ruby.vim
7: /usr/share/vim/vim73/ftplugin.vim
8: ~/.vim/plugin/AlignMapsPlugin.vim
9: ~/.vim/plugin/AlignPlugin.vim
10: ~/.vim/plugin/DirDiff.vim
11: ~/.vim/plugin/NERD_tree.vim
12: ~/.vim/plugin/Tabular.vim
13: ~/.vim/plugin/cecutil.vim
14: ~/.vim/plugin/filetype.vim
15: ~/.vim/plugin/matchit.vim
16: ~/.vim/macros/matchit.vim
17: ~/.vim/plugin/netrwPlugin.vim
18: ~/.vim/plugin/netrwclean.vim
19: ~/.vim/plugin/rails.vim
20: ~/.vim/plugin/voom.vim
21: /usr/share/vim/vim73/plugin/getscriptPlugin.vim
22: /usr/share/vim/vim73/plugin/gzip.vim
23: /usr/share/vim/vim73/plugin/matchparen.vim
24: /usr/share/vim/vim73/plugin/netrwPlugin.vim
25: /usr/share/vim/vim73/plugin/rrhelper.vim
26: /usr/share/vim/vim73/plugin/spellfile.vim
27: /usr/share/vim/vim73/plugin/tarPlugin.vim
28: /usr/share/vim/vim73/plugin/tohtml.vim
29: /usr/share/vim/vim73/plugin/vimballPlugin.vim
30: /usr/share/vim/vim73/plugin/zipPlugin.vim


--
Philip Rhoades

GPO Box 3411
Sydney NSW 2001
Australia
E-mail: phil@pricom.com.au

--
--
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.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment