You are not logged in.

#1 2023-10-15 20:56:29

b42
Member
Registered: 2023-07-20
Posts: 203

Total line count and size in kb after opening the file in neovim

How do I make neovim show total line count and size in kb at the bottom after I open the file like it does in vim?

Offline

#2 2023-10-15 22:51:15

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: Total line count and size in kb after opening the file in neovim

What documentation have you read? What have you tried? What searches have you done? How do you do it in vim? Does it not work that way in nvim?

Don't be a help vampire.

Offline

#3 2023-10-16 02:09:08

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,676

Re: Total line count and size in kb after opening the file in neovim

b42:  For this thread, let us please strive to reach a logical conclusion.

You might go back over all of your other threads and let us know if they were resolved.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2023-10-16 14:12:18

b42
Member
Registered: 2023-07-20
Posts: 203

Re: Total line count and size in kb after opening the file in neovim

In vim it is set by default, I have always used the default settings in vim, as for nvim, this setting is not set by default.

ewaller, I have solved most of my issues in my other threads.

Offline

#5 2023-10-16 20:54:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,659

Re: Total line count and size in kb after opening the file in neovim

g,ctrl+g
:help statusline

And while I've no idea whether nvim supports it, the cool kids o/c all use https://wiki.archlinux.org/title/Powerline#Vim

Offline

#6 2023-10-17 08:42:07

b42
Member
Registered: 2023-07-20
Posts: 203

Re: Total line count and size in kb after opening the file in neovim

what I am actually having in mind is this:

when I open nvim I see this:

0rV0Yjs

and vim shows it like this:

9Wj0Srb

so my question is, what do I put to init.vim for nvim to show Line Count and size in bytes once I open the file like vim does?

Offline

#7 2023-10-17 17:27:42

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,659

Re: Total line count and size in kb after opening the file in neovim

Why do you assume that's possible at all?
If you want to use vim, use vim - don't try to turn neovim into vim.

If you're interested in displaying that information, see my previous post.

Offline

#8 2023-10-17 19:59:10

b42
Member
Registered: 2023-07-20
Posts: 203

Re: Total line count and size in kb after opening the file in neovim

I assume it because nvim is based on vim and most of the configuration is the same. I also dont think that this setting is something very complex.

Offline

#9 2023-10-17 20:10:14

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,676

Re: Total line count and size in kb after opening the file in neovim

b42 wrote:

I assume it because nvim is based on vim

Actually, no.  It is a complete re-write that strives to be completely compatible with VIM.
Actually, I may be wrong in that statement.

Last edited by ewaller (2023-10-17 20:11:59)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#10 2023-10-17 20:23:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,659

Re: Total line count and size in kb after opening the file in neovim

Artix is based on archlinux, try to configure systemd on artix…

I also dont think that this setting is something very complex.

Well, then add it.

Afaict that's not configurable in vim and it's also dynamic, ie. the display disappears after some interaction.
Eg. it'll be gone in "vim -y foo.txt" before you can even see it and I don't think that's explicit but b/c the easy mode immediately moves to insert mode.
Either nvim has scrapped that display or kills it w/ some early interaction.

Offline

Board footer

Powered by FluxBB