New plugin: hml.nvim

https://github.com/mawkler/hml.nvim

By default in Neovim, H/M/L jump to the highest, middle, and lowest line in the current visible window. If you have scrolloff set, it can be dificult to tell exactly which lines they correspond to. I made this plugin to visually guide you.

19 points · 6 comments · view on lemmy.world

6 Comments

warg@lemmy.ml · 8 pts · 1y (3 replies)

By default in Neovim, H/M/L jump to the highest, middle, and lowest line in the current visible window

How did I not know this. How did I survive without this? Thanks OP.

matcha_addict@lemy.lol · 6 pts · 1y

I wonder what other useful key bindings we are missing out on?

sik0fewl@lemmy.ca · 2 pts · 1y (1 reply)

I don't know, but I have H and L remapped to ^ and $, which I like.

Hammerheart@programming.dev · 2 pts · 1y

I like that, might try it myself, since I actually use those keys, but never wanted to jump to the highest or lowest visible line. Closest I get is gg and G.

monk@lemmy.unboiled.info · 1 pts · 1y

Nice, if the highest visible line needs a marker to find instead of just being, you know, the highest visible line, then the feature is FUBAR and that means there are three more keys to safely remap.

moseschrute@lemmy.world · 1 pts · 1y

This is sick!