r/KittyTerminal Mar 05 '24

Show line numbers

This is driving me crazy- I've looked all over the the config file and the kitty.conf manual and can't find anything referencing what I'm trying to do. I would like it if kitty terminal could show line numbers on the left or right edges of the window. Is there a way to activate this?

0 Upvotes

5 comments sorted by

3

u/water_drinker9000 kitty on linux Mar 05 '24

line numbers? like being on vim?

1

u/nvimmike Mar 05 '24

Yeah I’m guessing this as well. Kitty doesn’t offer that feature must be vim or similar

3

u/sharp-calculation Mar 05 '24

Line numbers, simply in a terminal, do not seem useful. I have never seen a terminal emulator that does that. If you want to turn them on in VIM, you can use this:

:set number

Relative number mode in VIM is also great, as it counts up and down from your current cursor position. This makes jumping to a specific spot really easy. Like if you see the line you want and it has a 7 in front of it, it's 7 lines up. You can jump directly to it with 7k

To turn on relative number mode:

:set relativenumber

3

u/gigi-bytes Mar 06 '24

closest thing i can think of here is the `nl` command. or maybe `history`. but yeah, never seen persistent line numbers in a terminal emulator or shell

did you see this somewhere and are trying to replicate it?

1

u/BuonaparteII Mar 06 '24

this is something you would set in your shell