Wednesday, April 15, 2020

vim shows entire file in oneline

experts:
I just ran into a weird issue today...

when opening a log file in one of my server, It displays everything in one line, joined by ^J (ascii code 10).

g ctrl-g gives:
Col 32004 of 4999968-5005640; Line 1 of 1; Word 20 of 144087; Byte 32004 of 4999969

when I copy the same file into my local machine, and open it with vim here, it shows multiple lines.

Col 1 of 1736; Line 25 of 5672; Word 741 of 144087; Byte 66114 of 4999968

in both machine I use the same .vimrc. but the vim version is different.

in the server (running ubuntu 14.04): 

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:43:18)
Included patches: 1-52

in my local machine (running wsl in windows):
VIM - Vi IMproved 8.1 (2018 May 18, compiled Sep 03 2019 13:04:21)
Included patches: 1-1967

is this a known issue that got fixed? I doubted it though.
please shed some light on this. thanks.

regards
ping

--
--
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/CAHyaFsXDWAcecnwj4kQRpxGVkf%2Br1DEdaQ9V7mcpPKEONRHpOw%40mail.gmail.com.

No comments:

Post a Comment