Lorech / dotfiles

My personal configurations for development
0 stars 0 forks source link

Vim cheatsheet integration #5

Closed Lorech closed 1 week ago

Lorech commented 1 week ago

Problem

As I am not totally familiar with the Vim motions yet, especially ones I use somewhat rarely, I find myself looking up cheatsheets relatively often. My go-to so far has been this one by rtorr, but, as it's in-browser, it requires me to leave Vim to look it up.

I am already using which-key, but it serves a different purpose - helping you navigate around keymaps you already know.

What I want is a plugin that offers you a specific motion pattern which is ready to execute an entire action so I can avoid blind guesses through the which-key popup, and so I wouldn't have to define built-in keymaps into which-key.

Solution

A Neovim-integrated plugin should be added to my setup that can offer such functionality.

cheatsheet seems promising - it defines a cheatsheet for some default motions, at first glance even seemingly more than the cheat sheet I'm used to, as well as offering some other useful cheats for Unicode and RegEx, which seems convenient.

All of this is integrated with telescope, allowing fuzzy searching for specific actions, further helping speed up the process.