Famiu Haque @famiu.dev · Nov 3

This has got to be the greatest Vim macro ever. It gets the short name of a Vim option after the `PV_` prefix, searches for it in the file containing option metadata, gets the full name by searching for `full_name` in the file and then goes back to the previous window to insert the full name

2 likes 1 replies

?

Replies

Famiu Haque · Nov 3

Of course I had to omit some details due to the character limit. But basically it converts the short name of an option to its full name using option metadata stored in the window on the right (it also inserts a different prefix used for option index enum values in the codebase)